0
我在我的項目中使用angular/ui-mask。現在我需要一個用於阻止IP地址範圍的掩碼(例如192.168.70.18/20)。例如:角度/用戶界面ip地址
<input ng-model="address" ui-mask="9?9?9.9?9?9.9?9?9.9?9?9/9?9" ui-mask-placeholder-char="_" placeholder="" ng-disabled="disabled">
的問題是,所以我只能輸入該IP地址:192.168.125.254
的jsfiddle:http://jsfiddle.net/Sheinar/Lvc0u55v/6133/
我還是不能在第一次或第二次之後插入點分隔符ond符號。儘管我設置了像9?9?9那樣的面具,但我不能在該部分輸入少於三個符號。 –
查看此模塊(IPv4示例):http://candreoliveira.github.io/bower_components/angular-mask/examples/index.html – Matheus