Javascript 为什么如果我使用ng repeat,jQ插件不会';如果不',则不起作用;不使用,它工作正常吗?
我在angular中使用语义用户界面Javascript 为什么如果我使用ng repeat,jQ插件不会';如果不',则不起作用;不使用,它工作正常吗?,javascript,jquery,angularjs,angularjs-directive,angularjs-ng-repeat,Javascript,Jquery,Angularjs,Angularjs Directive,Angularjs Ng Repeat,我在angular中使用语义用户界面 当我在html中不使用ng repeat时,jQuery插件正常工作 像这样 <div class="ui animate list"> <div class="item ui toggle checkbox" todo-checkbox ng-repeat="item in day track by $index"> <input type="checkbox"> <label ng-bind=
当我在html中不使用ng repeat时,jQuery插件正常工作
像这样
<div class="ui animate list">
<div class="item ui toggle checkbox" todo-checkbox ng-repeat="item in day track by $index">
<input type="checkbox">
<label ng-bind="item.content"></label>
</div>
</div>
html
<div class="ui animate list">
<div class="item ui toggle checkbox" todo-checkbox>
<input type="checkbox">
<label>222</label>
</div>
</div>
如果我的代码像这样,复选框插件工作正常
但是如果我在html中使用ng repeat
,elem.checkbox()
<div class="ui animate list">
<div class="item ui toggle checkbox" todo-checkbox ng-repeat="item in day track by $index">
<input type="checkbox">
<label ng-bind="item.content"></label>
</div>
</div>
指令js与abve相同
如果使用ng repeat
,则应用程序不工作,
为什么?
如何修复此问题?控制台中显示了哪些错误?控制台中没有显示错误。。。。。。。