摘要: jQuery 选择选取元素 jQuery选择器 ID选择器(js一般尽量用ID选择器,效率最高) $("#id").html(); 类选择器 $(".className").text(); 标签选择器 $('p').click() 属性选择器 $("li[id]")、 $("li[id='link' 阅读全文
posted @ 2016-11-05 09:04 chEnYoNg11 阅读(86) 评论(0) 推荐(0) 编辑
摘要: JS 一、词法结构 1.区分大小写 2.注意 //单行 /* 多行注释 */ 3.字面量(直接量 literal) 12 数字 5.8 小数 “hello” ‘hello’ true /js/gi //正则 null //空 {x:1,y:2} {1,2,3,4} 4.标识符(变量)和保留字 5.分 阅读全文
posted @ 2016-11-05 08:54 chEnYoNg11 阅读(169) 评论(1) 推荐(0) 编辑