function updateNodeText(dom, newText){
dom.innerHTML = newText;
}
function addText(dom, newText){
dom.appendChild(newText);
}
function addChildNode(dom, newNode){
dom.appendChild(newNode);
}
function addChildNodeText(dom, newNode, newText){
dom.appendChild(newNode);
newNode.appendChild(newText);
}
function removeChildNode(dom, delNode){
dom.removeChild(delNode);
}
function removeChildText(dom, textNode){
dom.removeChild(textNode);
}
function findParentNode(dom){
return dom.parentNode();
}
function hasChildNodes(dom){
return dom.hasChildNodes;
}
function findChildNodes(dom){
return dom.childNodes;
}
function findFirstChildNode(dom){
return dom.firstChild;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载