| | |
| | | , "HClassValue": btns[i].getAttribute('class') |
| | | , "HLay_Event": btns[i].getAttribute('lay-event') |
| | | , "HValue": btns[i].innerText |
| | | , "childLiElement": btns[i].querySelectorAll('i') |
| | | }) |
| | | //记录数据库中没有设置数据的按钮节点的信息 |
| | | if ($.inArray(btns[i].id, btnsData_InDataBase) == -1) { |
| | |
| | | child.className = btns_info[index_temp].HClassValue; |
| | | child.setAttribute('lay-event', btns_info[index_temp].HLay_Event); |
| | | child.id = btns_info[index_temp].HButtonID; |
| | | child.innerHTML = data1.data[i]["HOtherName"] == "" ? btns_info[index_temp].HValue : data1.data[i]["HOtherName"]; |
| | | |
| | | if (btns_info[index_temp].childLiElement.length > 0) { |
| | | child.appendChild(btns_info[index_temp].childLiElement[0]); |
| | | } |
| | | |
| | | var element_i = document.createElement('text'); |
| | | element_i.innerHTML = btns_info[index_temp].HValue; |
| | | child.appendChild(element_i); |
| | | |
| | | //child.innerHTML = data1.data[i]["HOtherName"] == "" ? btns_info[index_temp].HValue : data1.data[i]["HOtherName"]; |
| | | if (data1.data[i]["HHideFlag"] == true) { |
| | | child.style = "display:none;"; |
| | | } else { |
| | |
| | | child.className = btns_info[index_temp].HClassValue; |
| | | child.setAttribute('lay-event', btns_info[index_temp].HLay_Event); |
| | | child.id = btns_info[index_temp].HButtonID; |
| | | child.innerHTML = btns_info[index_temp].HValue; |
| | | |
| | | if (btns_info[index_temp].childLiElement.length > 0) { |
| | | child.appendChild(btns_info[index_temp].childLiElement[0]); |
| | | } |
| | | |
| | | var element_i = document.createElement('text'); |
| | | element_i.innerHTML = btns_info[index_temp].HValue; |
| | | child.appendChild(element_i); |
| | | |
| | | //child.innerHTML = btns_info[index_temp].HValue; |
| | | child.style = "display:inline;"; |
| | | |
| | | // 将子节点添加到父节点下 |