html 表格获取单行

参考:http://www.jb51.net/article/63161.htm

function cell(btn_id) {
    {#var x=document.getElementById('#'+ btn_id).rows[0].cells;#}
    var x=document.getElementById('#'+ btn_id);
    {#alert(x[0].innerHTML);#}
    alert(btn_id);
}

body中的

< button onclick="cell({{user.0})">删除<button>

猜你喜欢

转载自www.cnblogs.com/lajiao/p/9023285.html
今日推荐