js遍历td,tr

    技术2022-05-11  54

     function checkuser(obj) {        var obj = window.event.srcElement;        var row = obj.parentElement.parentElement;        var value = row.cells[0].all[0].value;               var item = value.split("|");        alert(item);        if (item.length > 1) {            if (item[0] == "org") {                alert('请选择执法人员!');                return false;            }

            }        return true;    }


    最新回复(0)