< p>我是一名新程序员,我有一个小问题。这是我的代码的一部分:< / p>
< pre>< code>< script type =“text =”“html”=“”id =“experienceTmpl”>

 =“”< li =“”class =“ clearfix“>

 =”“< div =”“class =”page-header no-border holder“>
 =”“< a =”“class =” btn btn-icon-toggle btn-accent btn-delete stick-top-right“>< span =”“class =”md md-delete“>< =”“span>< =”“a> 
 =“”< h4 =“”class =“text-accent”> food =“”items
 =“”<%=“index%>
“&lt; =”“h4&gt;&#xa; =”“&lt; =”“div&gt;&#xa;&#xa; =”“&lt; div =”“class =”row“&gt;&#xa; &#xa; =“”&lt; div =“”class =“col-md-4”&gt;&#xa; =“”&lt; div =“”class =“form-group”&gt;&#xa; =“”&lt; input =“”type =“text”class =“form-control”id =“experience-company-&lt;%= index%&gt;”placeholder =“Food Item”name =“experience-company- &lt;%= index%&gt;“&gt;&#xa; =”“&lt; label =”“for =”experience-company-&lt;%= index%&gt;“&gt;&lt; =”“label&gt;& #xa; =“”&lt; =“”div&gt;&#xa; =“”&lt; =“”div&gt;&#xa;&#xa; =“”&lt; div =“”class =“col-md -4“&gt;&#xa; =”“&lt; div =”“class =”form-group“&gt;&#xa; =”“&lt; input =”“type =”text“class =”form- control“id =”experience-functiontitle-&lt;%= index%&gt;“placeholder =”Price“name =”experience-functiontitle-&lt;%= index%&gt;“data-rule-number =”true“&gt; &#xa; =“”&lt; label =“”for =“experience-functiontitle-&lt;%= index%&gt;”&gt;&lt; =“”label&gt;&#xa; =“”&lt; p =“ “class =”help-block“&gt; digits =”“仅&lt; =”“p&gt;&#xa; =”“&lt; =”“div&gt;&#xa; =”“&lt; =”“div&gt;& #xa;&#xa; =“”&lt; div =“”class =“col -md-4“&gt;&#xa; =”“&lt; div =”“class =”form-group“&gt;&#xa; =”“&lt; select =”“id =”select1-&lt;% = index%&gt;“name =”select1-&lt;%= index%&gt;“class =”form-control“placeholder =”select“required required&gt;&#xa; =”“&lt; option =”“value =” Full Plate“&gt; full =”“plate&lt; =”“option&gt;&#xa; =”“&lt; option =”“value =”Half Plate“&gt; half =”“plate&lt; =”“选项&gt;&# xa; =“”&lt; option =“”value =“Quarter Plate”&gt; quarter =“”plate&lt; =“”option&gt;&#xa; =“”&lt; =“”select&gt;&#xa; =“ “&lt; label =”“for =”select1-&lt;%= index%&gt;“&gt;&lt; =”“label&gt;&#xa; =”“&lt; =”“div&gt;&#xa; =” “&lt; =”“div&gt;&#xa;&#xa; =”“&lt; =”“div&gt;&#xa;&#xa; =”“&lt; div =”“class =”form-group“ &gt;&#xa; =“”&lt; input =“”type =“text”multiple =“”name =“cuisine”class =“tagsInput”value =“Afghani,Mughlai”data-url =“cuisine.json” data-user-option-allowed =“true”data-load-once =“true”required =“”&gt;&#xa; =“”&lt; =“”div&gt;&#xa;&#xa; =“ “&lt; =”“li&gt;&#xa;&#xa;&lt; =”“script&gt;&#xa; <=”“code =”“> &#xA;&#xA;
我的问题是如何添加t他在这个html模板中的脚本,所以输入标签中的类调用此脚本:
&#xA;&#xA;
&lt; script type =“text / javascript”&gt;&#xA; $('。tagsInput')。fastselect();&#xA;&lt; / script&gt;&#xA;
&#xA;&#xA;
这是否可以调用此方法html模板中的脚本请提供我完全空白的解决方案。
&#xA;