2
我有一个绑定输入[type = range]给AngularJS的问题。AngularJS不会初始化大数字的输入[type = range]
这里是我的HTML代码:
<input type="range" min="{{test.testMin}}" max="{{test.testMax}}" step="{{test.testStep}}" ng-model="test.testVal" />
而且在我的控制器:
$scope.test = {
testMin : 0,
testMax : 50000,
testVal : 10000,
testStep : 5000
};
的问题是,滑块值未初始化(0而不是10000)。
奇怪的是,它适用于testMax和testVal的较小值。
啊,我最终使用的其他滑块:-( – sazz