function renderDom(str){ var _div = document.createElement('div'); _div.innerHTML = str; var dom_temp = _div.childNodes for (var i = 0, len = dom_temp.length; i < len; i++) { if (dom_temp[i].nodeType === 1) { return dom_temp[i]; } } return}
原生js快速渲染dom节点