📜  HTML DOM 输入日期 select() 方法

📅  最后修改于: 2022-05-13 01:56:55.575000             🧑  作者: Mango

HTML DOM 输入日期 select() 方法

HTML DOM 中的Input Date select() 方法用于选择 Date 文本字段的内容。它是输入日期对象的预定义方法。

句法:

dateObject.select()

参数:此方法不包含任何参数。

返回值:它不返回任何值。

示例:下面的示例说明了在 HTML DOM 中使用 Input select() 方法。

HTML


  

    HTML DOM Input Date select() Method
  
    

  

  
    

GeeksforGeeks

    

Input Date select() Method

    
               

        To select the content of the Date Field,         double click the "Check me!" button.     

                     


输出:

支持的浏览器:

  • 谷歌浏览器
  • IE浏览器
  • 歌剧
  • 火狐
  • 苹果浏览器