标签:lse == find row his function html ddr one
html:
<a href="#" onclick="addrow(this);">[+]</a>
JS:
function addrow(o){
var div=$(o).parent().parent();
if($(o).html() == ‘[+]‘){
var newdiv=div.clone();
newdiv.find(‘a‘).html(‘[-]‘);
div.after(newdiv);
}else{
div.remove();
}
}
标签:lse == find row his function html ddr one
原文地址:https://www.cnblogs.com/2019gdiceboy/p/13618241.html