function getVal(){ var obj=event.srcElement; while(obj.tagName!="TR") { obj =obj.parentElement; } var a=obj.children[0].innerHTML; var b=obj.children[1].innerHTML; var c=obj.children[2].innerHTML; }
本文共 365 字,大约阅读时间需要 1 分钟。
function getVal(){ var obj=event.srcElement; while(obj.tagName!="TR") { obj =obj.parentElement; } var a=obj.children[0].innerHTML; var b=obj.children[1].innerHTML; var c=obj.children[2].innerHTML; }
转载于:https://www.cnblogs.com/superpear/archive/2012/06/09/2543497.html