HTML输入自动完成功能无法在WKWebview中使用

时间:2018-04-23 20:46:43

标签: html ios wkwebview

启用自动完成功能的输入在移动Safari中打开时正常工作,但在WKWebview(iOS 11.3)中加载时则无法正常工作。这是一个已知的限制吗?

1 个答案:

答案 0 :(得分:0)

https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element?language=objc

尝试使用以下格式来获取自动填充字段的html

<input id="user-text-field" type="email" autocomplete="username"/>