由网友(我比想象中爱你@)分享简介:在AngularJs看来,当您尝试重置形式,所有的车型设置为空对象,如果输入键入=电子邮件这不会得到清除。将其更改为键入=文字然而工作,但你失去验证红色边框。In AngularJs it seems that when you try to 'reset' a form, by setting all of the...
在AngularJs看来,当您尝试重置形式,所有的车型设置为空对象,如果输入键入=电子邮件
这不会得到清除。将其更改为键入=文字
然而工作,但你失去验证红色边框。
In AngularJs it seems that when you try to 'reset' a form, by setting all of the models to an empty object, if an input is type="email"
this doesn't get cleared. Changing it to type="text"
works however, but then you lose the red border on validation.
反正是有复位或清除电子邮件类型的输入?
Is there anyway to reset or clear an email type input?
谢谢!
推荐答案
为了记录,请参考OP意见的解释相关,看到这的为演示plunker 。
Just for the record, refer to the OP comments for explainations and see this plunker for a demo.
相关推荐
最新文章