国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

angular.js - Anglejs {{}}??
PHPz
PHPz 2017-05-15 16:51:54
0
4
654

? HTML ??????? {{a}}?

? ?????? ????

??? ?? ??? ??

????

??? ??? ??? ? ? ?? ??? ?? ?? ???~

PHPz
PHPz

學(xué)習(xí)是最好的投資!

?? ??(4)
為情所困

?? ?????? ??:

ngBind ??? Angular??
??? HTML ??? ??? ???? ??? ???? ??? ????
?? ???? ?? ???? ??? ??? ???????.ngBind attribute tells Angular to replace the text content of the
specified HTML element with the value of a given expression, and to
update the text content when the value of that expression changes.

意思就是ngBind會(huì)告訴angular去將你寫的表達(dá)式替換成一個(gè)特殊的html元素。

而這個(gè)特殊的html元素就是那個(gè)帶class的span了,

雙花括號(hào){{}}ngBind是一樣的,實(shí)際上是一個(gè)directive

?? ngBind? ??? ???? ?? html ??? ???? ??? ????? ?????.

??? ? ?? html ??? ???? ??? ?????. ?? ???? ??? {{}}? ngBind? ??? ?????? ?? ??? ?? ????. ?? ???? ?? ngBind??
淡淡煙草味

AngularJs ng-bind? HTML ? ??? ??? 4? ????. ??? ??? ?? ?? ??? ????? ??????

洪濤

a? ??? ?? ??? ??????
????? $scope.a=4;
{{a}}? ?? ??? 4???.

伊謝爾倫

?????? ?????. ?? https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L1...
?? ???? ? ? ????. ??? ? "??? ??? ??"? ???? ????? ? ?????