https://code.jquery.com/jquery-版本号.min.js//一般用这个
https://code.jquery.com/jquery-版本号.js//利于阅读
列如版本为2.2.4
https://code.jquery.com/jquery-2.2.4.min.js
https://code.jquery.com/jquery-2.2.4.js
1.打开网页,点击右键,选择另存为自己想要保存的地址
2.打开保存的地址,会找到jQuery文件
3.把这个文件复制到你的html项目中即可,列如:
4.引入jQuery
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script src="jquery-2.2.4.min.js"></script> //在下面写js <script> </script> </body> </html>
复制
5.引入之后就可以在下面写js,jQuery的引入一定要在js的上面