angular.js - 关于angular中$parent的疑问
世界只因有你
世界只因有你 2017-05-15 16:59:13
0
1
488

在网上找到一个讲angular例子的教程,其中一个例子,没怎么看懂,希望各位朋友能指点一二:

ng-class="{true: 'year-interest', false: 'etc-text'}[$parent.$parent.$parent.$first]"

教程网址在:http://each.sinaapp.com/angular/tutorial/ng-nested-repeat.html

主要是没看懂:
1、那个true和false是依据什么进行bool判断的?
2、后面的$parent.$parent.$parent.$first是什么意思,是指作用域吗?

望各位朋友能指点一二。

世界只因有你
世界只因有你

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!