var ms_ie = false; var ua = window.navigator.userAgent.toLowerCase(); var old_ie = ua.indexOf('MSIE'); var new_ie = ua.indexOf('trident/'); var is360 = false; var append = document.getElementById("append"); if((old_ie > -1) || (new_ie > -1
用insertRow,insertRow操作表格时,发现在谷歌浏览器中顺序和IE是反的 // 表格新增行 function addTableRow($id,$arr,$rowAttr){ var tableObj = document.getElementById($id); var tBodyObj = tableObj.tBodies[0]; var rowObj = document.createElement("tr"); var cellObj; if($rowAttr){