1 Answers
将它们静态地添加到html文件中。
或者通过Javascript 添加它们(例如可以在krpano JS 动作 或krpano插件中完成)
var newscript = document.createElement("script"); newscript.onloaded = function(){ console.log("script loaded, now you can use it"); } newscript.src = "your_js_file.js"; document.body.appendChild(newscript ); var newcss = document.createElement("link"); newcss.onload = function(){ console.log("css loaded, now you can use it"); } newcss.rel = "stylesheet"; newcss.type = "text/css"; newcss.href = "your_css_file.css" document.getElementsByTagName("head")[0].appendChild(newcss);
Your Answer