1
在AngularJS中使用this
和$scope
有什麼區別,this
只做單向數據綁定,而$scope
做雙向數據綁定?
在AngularJS中使用this
和$scope
有什麼區別,this
只做單向數據綁定,而$scope
做雙向數據綁定?
Angular在$scope
上做了額外的處理,它對this
沒有做任何處理。
有關更多信息,請參閱Angular: Should I use this or $scope。