我正在使用官方AngularJS UI Maskhttps://github.com/angular-ui/ui-mask并试图找出如何创建货币美元的掩码。
我希望用户能够投入$00.01喜欢$9000000.00或任何所需的最大值。
我目前有:<input type="text" ng-model="greeting" ui-mask="$99.99" class="form-control input-lg" style="width:50%" />
这限制了我99美元…
这是一个现场演示:http://plnkr.co/edit/5ErV11uGVxJFmD24K2jk?p=preview
您可以使用输入数字。
<input type="number" min="0.99" max="9000000.00" ng-model="greeting"
class="form-control input-lg" style="width:50%" />