标签:UNC cti str pts ext type end var string
function loadScriptString(code){
var script = document.createElement("script");
script.type = "text/javascript";
try{
script.appendChild(document.createTextNode(code));
} catch(ex){
script.text = code;
}
document.body.appendChild(script);
}
调用示例
loadScriptString("function sayhi(){alert(‘hi‘);}")
标签:UNC cti str pts ext type end var string
原文地址:https://www.cnblogs.com/msg001/p/9280040.html