angulajs 當input使用 bootstrap的email類型時,若是是無效的email格式,則ng-model無效的狀況

當使用bootstrap的以下input時bootstrap

<input type="email" ng-model="userid">input

若是輸入的內容是無效的email格式,這時 ng-model 將無效。但當輸入的格式有效時,則ng-model 有效。email

若是是<input type="text"> ,則沒有這種限制model

相關文章
相關標籤/搜索