jQuery循环遍历div,并且获取内容
var divbox = $(".checkbox.active");$.each(divbox,function (index,don){ analysistypes.push(don.innerText);});//divbox是获取到的div,index是下标,don是每个div//jQuery获取div值得方法:text()获取文本,html()获取所有内容(包括HTM...
原创
2020-02-15 23:27:45 ·
5197 阅读 ·
1 评论