Is there an easy way to loop through all td tags and change them to th? (etc).
My current approach would be to wrap them with the th and then remove the td, but then
document.body.innerHTML=document.body.innerHTML.replace(/(\)|(\)/gi,function(x){return x.replace("td","th");}) 0 讨论(0) 查看其它8个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题