Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5 Input 唤起不同类型软键盘 #16

Open
Samgao0312 opened this issue Jun 4, 2019 · 0 comments
Open

H5 Input 唤起不同类型软键盘 #16

Samgao0312 opened this issue Jun 4, 2019 · 0 comments

Comments

@Samgao0312
Copy link
Owner

Samgao0312 commented Jun 4, 2019

背景

本周开发了一个退款页(内嵌到APP webview里展示的H5),其中有个让用户输入退款账户的输入框。想实现成当获取输入框焦点之时打开英文键盘(上家公司里有类似封装好的方法——公共部门开发的,但是没有想到去研究过)。于是网上查找了一番,发现我的需求还可以进一步优化 —— 根据不同类型输入框,显示不同类型的软键盘。如:输入邮箱的显示带@符号的键盘,输入手机号的显示数字键盘、输入URL的显示带http/ 的英文键盘。

参考阅读

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant