[color=red][/color]一下div是我页面要显示文章预览的页面,在
Posted on ${dis.articleTime} by ${dis.userInfo.userName}
[code="html"]
改为
[code="html"]
[code="js"]$("#content div[name=entry]")[/code]
为什么连这个概念都没有呢,id意味着全局唯一,这种情况要用name
把迭代出的div 的ID 定义的有规律就OK! id="entry_2 id="entry_3
或者 jQuery 的 find()。each{} 遍历
$("#entry").text()
$(function(){
$("#entry").each(....
}
);