0
我注入了一些html作为一个选项卡,并想知道,我是否需要把相关的脚本标签放在我注入的html内部,或者在主html中。<script>标签内的标签
例如
<html>
<head>
<!-- would my tab specific script go here?-->
</head>
<!--html being injected as a tab-->
<div>
<!--got from an external html file-->
<html>
<head>
<!-- or here?-->
</head>
</hmtl>
</div>
</html>
这取决于脚本的功能。 – JJJ
它是jQuery,初始化日期选择器对象 – Zack
里面的标签html,我有 – Zack