s
o
u
l
s
j
i
e
摘要: jQuery学习之 html()、text()和val() .html(),.text()和.val()的差异总结: (来源:慕课网) 例子: <div class="soulsjie"> <h1>soulsjie</h1> <h3>.html()与.text()</h3></div> <h4>显示 阅读全文
posted @ 2017-11-04 13:50 soulsjie 阅读(317) 评论(0) 推荐(0) 编辑
摘要: jQuery学习之 标签的属性 <a href=””>链接</a>此处的href就是该a标签带有的属性 在js中对标签的属性的操作方法有 1.1getAttribute()方法 获取元素的属性 例子: <a href="www.soulsjie.com" id="jie">jie</a> <scri 阅读全文
posted @ 2017-11-04 12:02 soulsjie 阅读(293) 评论(0) 推荐(0) 编辑
摘要: a.id选择器 <div id=”test1”></div> var div1=$(“#test1”); //同css的写法一样id选择器用#号实现 div1.css(‘color’,’red’); b.class选择器: <div class=”test2”></div> var div2=$(“ 阅读全文
posted @ 2017-11-04 11:41 soulsjie 阅读(190) 评论(0) 推荐(0) 编辑
你累吗?累就对了,当你觉得累时证明你在走上坡路!-----NotFoundObject - 2016-12-14 08:43