截取字符串 ?str.slice(start,length); ?//(從哪個位置開始, ?截取的長度)
str.substring(last,index) //(最后一位,從第幾位的下標開始截取)//這個是我自己理解的,我也不知道對不對,反正是能獲取到手機號的后四位
angular Js input 失去焦點時獲取數據
ng-model-options="{updateOn: 'blur'}"
ng-blur = '失焦時執行的表達式'
截取字符串 ?str.slice(start,length); ?//(從哪個位置開始, ?截取的長度)
str.substring(last,index) //(最后一位,從第幾位的下標開始截取)//這個是我自己理解的,我也不知道對不對,反正是能獲取到手機號的后四位
ng-model-options="{updateOn: 'blur'}"
ng-blur = '失焦時執行的表達式'