-5
時無效的電子郵件不會在controller.js警報獲取電子郵件地址文件HTML 5如何防止電子郵件驗證的輸入框中鍵入從上=提交按鈕「電子郵件」
也用@Scope
<form ng-show="!subscribeSuccess" ng-submit="subscribeNewsLetter(subscribEmailAddress)" novalidate>
<input type="email" name="subscribEmailAddress" placeholder="SHOP.SUBSCRIBE_PLACEHOLDER" ng- model="subscribEmailAddress" translate>
<button type="submit" name="commit" class="action-button" translate>SHOP.SUBSCRIBE</button>
</form>
這是正確的答案。 – aspencer8111 2014-11-14 15:25:56
Whwn我點擊提交按鈕,使用無效的電子郵件,它不會在瀏覽器控制檯中顯示無效的電子郵件ID,在參數也去NULL – 2014-11-17 06:46:26
這不再工作:http://jsbin.com/sozahiniku/edit?html,js ,輸出 – AndrewSouthpaw 2017-04-05 14:54:56