解决chrome自动填充(input) 发表于 2019-04-28 | 更新于: 2019-04-28 | 分类于 萌新 本文写给萌新,请看清分类,不喜请右上角欢迎补充 直接上代码1<input readonly onfocus="this.removeAttribute('readonly');"/> 网上的其他方法大多失效, disabled也可以实现效果, 但需要在input加载后清除disabled属性, 逻辑分离不易维护, 也较为麻烦, 这个方法我认为比较优雅