摘要: $("button").click(function() {..some code... } ) Event 函数绑定函数至 $(document).ready(function) 将函数绑定到文档的就绪事件(当文档完成加载时) $(selector).click(function) 触发或将函数绑 阅读全文
posted @ 2017-06-04 14:27 咸鱼翻身 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 语法描述 $(this) 当前 HTML 元素 $("p") 所有 元素 $("p.intro") 所有 class="intro" 的 元素 $(".intro") 所有 class="intro" 的元素 $("#intro") id="intro" 的元素 $("ul li:first") 每个 的第一个 元素 $("[href$='.jpg']")... 阅读全文
posted @ 2017-06-04 14:22 咸鱼翻身 阅读(217) 评论(0) 推荐(0) 编辑