Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 588 Bytes

File metadata and controls

21 lines (18 loc) · 588 Bytes

1.import

use src tag to import the resource

<script src="/js/jquery-3.4.1.min.js "></script>

validate

You can write down console in your browser. 可以在浏览器 console 中输入

$.fn.jquery

2.pay attention to the ready function

It is neccessary to put the main code in the ready function since most functions are executed after the DOM tree is rendered. 绝大多数操作需在文档就绪后才执行,因此jquery的代码入口就在这个函数中

$(document).ready(function(){ main code }

3.