<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是有值的
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
controller:
http://stackoverflow.com/questions/19981627/setting-scope-property-with-ng-init-doesnt-work
假设你的
controller
是这样的: