new Option("文本","值",true,true).后面两个true分别表示默认被选中和有效! //js默认选中 var sel = document.getElementsByClassName("project_type")[0]; sel.options.length=0;//清空 sel.options.add(new Option("请选择","0")); $.each(res,func
5列 根据需要可添加 或 删除 strOneTemp strTwoTemp strThreeTemp strFourTemp strFiveTemp //合并单元格 this.mergeCellsTable = function(){ var strOneTemp = null; var indexOne = 1 var objOne={}; var strTwoTemp = null; var indexTwo = 1 var objTwo={}; var strThreeTemp
function Test() { var rows = document.getElementById("tbDetail").rows; if (rows.length > 0) { for (var i = 1; i < rows.length; i++) { (function (i) { //var temp = rows[i].cells[0].childNodes[1].value; var temp = rows[i].cells[0].childNodes