页面创建script节点方式

  var nodeEle = document.createElement("script");
  nodeEle.type = "text/javascript";
  nodeEle.charset = 'utf-8';
  nodeEle.src = "js/ZhZComm.js";
  nodeEle.async = true;
  s.parentNode.insertBefore(nodeEle, s);
  document.write(unescape("%3Cscript src='js/ZhZComm.js' async=true type='text/javascript'%3E%3C/script%3E"));

  

posted @ 2012-11-29 15:07  xyzhuzhou  阅读(258)  评论(0编辑  收藏  举报