学习JQuery准备工作
2017-12-17 本文已影响0人
_章鱼丸子
引用JQ文件,在<head></head>里面添加。
引用方式:
一、下载JQuery库,地址:http://jquery.com/

在页面中添加<head><script src="您的JQ路径"></script></head>
提示:在HTML5中无需添加type="text/javascript";
二、在线引用
官网压缩版引用地址(jquery-3.1.1):
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>