锋利的jQuery读书笔记(二)

第二章 jQuery选择器 1 css选择器 2 优良的代码风格,网页内容和行为分离 jQuery Demo 3 document,getElementById(“tt”).style.color=“red”;//在id为tt的元素不存在时将会报错 $("#tt").css(“color”,“red”);//在id为tt的元素不存在时不会报错 注意: KaTeX parse error: Expe
相关文章
相关标签/搜索