document.onclick = function(e){ var e=(e||event); var o=e["target"]||e["srcElement"]; var s= o.outerHTML; show_confirm(o); } function show_confirm(o){ var r=confirm("确认是否删除该元素!\n\n"+o.outerHTML); if (r==true) { o.remove(self); } }
微信:zhinux
QQ:191319793
电子邮箱:server@cuutu.com