jQuery的基本语法
2016-08-11 14:04
211 查看
index.html代码
js代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script src="jquery-3.1.0.min.js"></script> <script src="myjs.js"></script> </head> <body> <p>hello</p> <p>hello</p> <p>hello</p> <p>hello</p> <p>hello</p> <p>hello</p> </body> </html>
js代码:
$(document).ready(function(){ //alert("文档加载完毕"); $("p").click(function(){//点击p元素,p元素隐藏 $(this).hide(); }) });
相关文章推荐
- jquery基本语法
- jQuery——基本语法与文档就绪函数
- jQuery基本语法
- jQuery的基本语法
- jQuery 基本语法
- jQuery基本语法
- jquery基本语法
- JQuery基本概念,语法,选择器,事件
- jquery基本语法
- jQuery基本语法和选择器
- JQuery基本语法
- jQuery 基本语法
- jQuery 基本语法总结(10)
- jquery的基本使用语法
- jQuery 入门教程(2): 基本语法
- jQuery 入门教程(2): 基本语法
- Jquery 模板插件 jquery.tmpl.js 的使用方法(1):基本语法,绑定,each循环,ajax获取json数据
- jQuery 基本语法
- jQuery 基本语法
- jQuery 入门教程(1): 基本语法