标签:
function loopEvent(loopClass,n,ele){
var text = "";
for (var i = 0; i <=n; i++) {
text += $(loopClass).append("<"+ele+">"+i+"</"+ele+">");
}
}
loopEvent($(".starTime"),23,"li");
loopEvent($(".loop"),60,"option");
标签:
原文地址:http://www.cnblogs.com/hzx-5/p/4848455.html