亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

angular.js中 ng-repeat="i in [1]" ng-repeat="item in [1, 2]"什么意思

angular.js中 ng-repeat="i in [1]" ng-repeat="item in [1, 2]"什么意思

super卉 2015-08-28 10:18:22
<div ng-controller="EventController"> ? Root scope ? <tt>MyEvent</tt> count: {{count}} ? <ul> ? ? ?<li ng-repeat="i in [1]" ng-controller="EventController"> ? ? ? ? <button ng-click="$emit('MyEvent')"> ? ? ? ? ? ?$emit('MyEvent') ? ? ? ? </button> ? ? ? ? <button ng-click="$broadcast('MyEvent')"> ? ? ? ? ? ?$broadcast('MyEvent') ? ? ? ? </button> ? ? ? ? <br> ? ? ? ? Middle scope ? ? ? ? <tt>MyEvent</tt> count: {{count}} ? ? ? ? <ul> ? ? ? ? ? ?<li ng-repeat="item in [1, 2]" ng-controller="EventController"> ? ? ? ? ? ? ? Leaf scope ? ? ? ? ? ? ? <tt>MyEvent</tt> count: {{count}} ? ? ? ? ? ?</li> ? ? ? ? </ul> ? ? ?</li> ? </ul></div>
查看完整描述

4 回答

?
慕少3948738

TA貢獻1條經驗 獲得超4個贊

同問。。

查看完整回答
4 反對 回復 2016-01-22
?
qq_彩虹的影子_0

TA貢獻1條經驗 獲得超2個贊

[1]數組里有一個元素1,ng-repeat="i in [1]"遍歷1次

[1,2]數組里有一個元素1,2,ng-repeat="i in [1,2]"遍歷2次


查看完整回答
2 反對 回復 2016-08-03
?
亂號

TA貢獻3條經驗 獲得超2個贊

數組[1] 數組[1,2]

查看完整回答
2 反對 回復 2016-03-03
?
亂號

TA貢獻3條經驗 獲得超2個贊

I am test

查看完整回答
反對 回復 2016-06-03
  • 滄落
    滄落
    I login your account suddenly.I don't know why.
  • 4 回答
  • 0 關注
  • 4700 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號