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

与时俱进,HTML 新增支持 showPicker 方法 #33

Open
chokcoco opened this issue Mar 20, 2022 · 0 comments
Open

与时俱进,HTML 新增支持 showPicker 方法 #33

chokcoco opened this issue Mar 20, 2022 · 0 comments

Comments

@chokcoco
Copy link
Owner

从 Chrome 99+ 开始,新增了一个非常有用的 function -- showPicker(),它能够让多个 input 类型元素使用 showPicker() 方法。它们是:

  • type=date
  • type=month
  • type=week
  • type=time
  • type=datetime-local
  • type=color
  • type=file

OK,那么新增的 showPicker() 到底有什么作用呢?

我们以 type=color 为例子。

<input type="color" />
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