我正在使用angular。 我有一個輸入框輸入6位數後,我必須點擊按鈕。如何在輸入框中輸入6位數字後調用函數angularjs
<input type="tel" ng-model="loginData.otp" id="otp1" placeholder="OTP" >
</label>
<label class="item">
<button class="button button-block button-positive" id="otplogin" type="submit">Login</button>
</label>
我有一個輸入框後輸入6位數字,我需要點擊按鈕。 輸入6位數後我怎樣才能調用函數?我不需要點擊按鈕?