<form class="ui form" id="indexForm" name="indexForm" onsubmit="return false;">
<span id="QuacorGradingValue" ng-model="fen" name="fen">6</span>
</form>
在controller裡面為啥獲取不到
var updateData = {};
alert("$scope.rates==="+$scope.fen);//undefined
//$scope是有價值的
雷雷
雷雷
控制器:
雷雷http://stackoverflow.com/questions/19981627/setting-scope-property-with-ng-init-doesnt-work
假設你的
controller
是這樣的: