jQuery的一些

重拾jQuery 1.选择器: (1)元素选择器: jQuery 元素选择器基于元素名选取元素: 在页面中选取所有 《p》 元素 源码为: $(document).ready(function(){ $(“button”).click(function(){ $(“p”).hide(); }); }); 即p标签下的所有事物,在button触发click事件之后会全部隐藏 (2)id选择器 源码为
相关文章
相关标签/搜索