Skip to content

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

@chokcoco

Description

@chokcoco

从 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" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions