var div = document.getElementById("pan_table_div");
div.innerHTML ="";
var table = document.createElement("table");//创建table
table.setAttribute("id","modelTable");
table.setAttribute("class","modelTable pan_single_table");
div.innerHTML ="";
var table = document.createElement("table");//创建table
table.setAttribute("id","modelTable");
table.setAttribute("class","modelTable pan_single_table");
table.setAttribute("style","width:100%");
//动态创建行,列
var row = table.insertRow();
row.setAttribute("style","background-color: #F2F7FD");
var cell = row.insertCell();//创建一个单元
cell.setAttribute("class","td_align_center");
cell.innerHTML = "编码";
cell = row.insertCell();//创建一个单元
cell.setAttribute("class","td_align_center");
cell.innerHTML = "名称";
div.appendChild(table);