0
<div id="summary"><div id="container"></div>
\t \t <div id="blocker"></div>
\t \t \t \t <script type ="text/javascript" src="user.js"></script>
</div>
\t \t
<button type="button">Personal</button>
\t \t \t \t \t <a href="#" onclick="f1(1);"<button type="button">Apps</button></a>
\t \t \t \t \t <button type="button" >Settings</button>
function f1(id)
{
$('#summary').html(' <script type ="text/javascript" src="apps.js">
</script>');
}
这并没有帮助? - > https://stackoverflow.com/questions/14521108/dynamically-load-js-inside-js – MJoraid
为什么?从后端加载数据可能是一个很好的用例ajax –
我可以做到这一点,但我加载的文件是一个three.js文件,现在,我只想用另一个three.js文件替换它 –