Brower 的自动填充在 ember.js 表单中不起作用 [英] Brower's autofill is not working in ember.js forms
问题描述
用户需要登录的情况并不少见.在大多数浏览器中,都有一个密码管理器.问题在于,对于使用 javascript 构建的表单,浏览器无法识别表单.并且自动填充功能不起作用.有什么解决办法吗?
It's not uncommon user needs to login. And in most browsers, there is a password manager. The problem is that for forms, that are built using javascript, browser doesn't recognize forms. And autofill feature doesn't work. Any work around?
例如:
<代码><表单>{{input value=name name="firstname"}}</表单>
推荐答案
添加 autocomplete="true"
就可以了.
像这样:{{input value=name name="email" autocomplete="true"}}
更新:: 我不知道为什么你的表单不起作用,我会检查所有选项,比如在你的浏览器中启用了自动填充,但对我自己来说,jsbin 中的以下表单允许我在以下情况下自动填充我点击第一个框.
UPDATE:: I'm not sure why your form is not working, I would check all options such as that auto-fill is enabled in your browser, but for myself, the following form in the jsbin allows me to autofill when I click on the first box.
http://emberjs.jsbin.com/jifuxako/1/编辑?html,js,输出
这篇关于Brower 的自动填充在 ember.js 表单中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!