摘要: Javascript For/In 循环: 循环遍历对象的属性 var person={fname:"John",lname:"Doe",age:25}; for (x in person) { txt=txt + person[x]; } 结果:JohnDoe25 jQuery jQuery.ea 阅读全文
posted @ 2016-11-07 11:21 Mr.Kiven 阅读(89859) 评论(1) 推荐(0) 编辑
摘要: 在开发中我们有时会对html标签添加属性,如何遍历处理 <ul> <li name="li1" sortid="nav_1">aaaaaaa</li> <li name="li1" sortid="nav_2">bbbbbbb</li> <li name="li1" sortid="nav_3">c 阅读全文
posted @ 2016-11-07 11:14 Mr.Kiven 阅读(6364) 评论(0) 推荐(0) 编辑