jQuery下载
官网:Download jQuery | jQueryhttp://jquery.com/download/
jQuery的使用
1.用户通过<script>标签在HTML文档的首部标签<head>和</head>中添加jQuery的引用声明
语法:<script src=”jQuery文件URL”></script>
- HTML4.01版中的<script>元素首标签需要写成
<script type=”text/javascript” src=”jQuery文件URL”>
如:
3.HTML5中可以省略 type=”text/javascript”
如: