I am a novice beginner, to share their own way of learning.
A: First, you can first download the source code on the official website http://jquery.com/
The current use is still 1.*, so you don't have to consider the 2.* version.
The first is the compressed source code, and the second is the native source code.
After download, you can save to create a new folder called JS, and then open the new HTML file, the introduction of jquery file.
<script src= "js/jquery-1.12.0.min.js></script>
Then open the jquery website and open the API documentation. "There is a Chinese website jQuery.bootcss.com" This is a document of JQuery.
Two: Start writing jquery code
But jquery is all about shorthand, so we replaced jquery with $.
Enter writing:
jquery's complex notation
jquery Shorthand:
<! DOCTYPE html>
<meta charset= "UTF-8"
<title>jquery Learning </title>
<script src= "Js/jquery-1.12.0.min.js" ></script>
<body>
<button id= "BTN" >Button</button>
<script type= "Text/javascript" >
$ (function () {
Alert ("Hi,jquery");
});
</script>
</body>
The way to learn to get started with JQuery