嗨,我有一个看起来像的表格。(我已经使用了SheepIt形式的克隆,但是我需要的是类似下面的东西)。
<div id="container">
<% for i in loop %>
//ex. 3 times loop could be test-1, test-2, test-3
<div id="test-[i]">
"some content"
</div>
<% end loop %>
</div>
我认为这是您要寻找的:
$('#container').children().each(function(){
var id = $(this).prop('id');
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句