function addSecondclass()
{
var str = ' <SCRIPT DEFER LANGUAGE="JavaScript">
tree.nodes['1_11'] = 'text:节点 11';
</SCRIPT>'
var the = document.createElement("SPAN")
the.style.display = "none" ;
document.getElementById('first').appendChild( the ) ;
the.innerHTML = str ;
}
{
var str = ' <SCRIPT DEFER LANGUAGE="JavaScript">
tree.nodes['1_11'] = 'text:节点 11';
</SCRIPT>'
var the = document.createElement("SPAN")
the.style.display = "none" ;
document.getElementById('first').appendChild( the ) ;
the.innerHTML = str ;
}
要改下
"</scr"+"ipt>"
为什么要动态添加这个
写在function中不行吗?
/号最好转义一下