<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # HTML DOM Month 對象 ## Month 對象 Month 對象是 HTML5 中的新對象。 Month 對象表示 HTML &lt;input type="month"&gt; 元素。 注釋:Internet Explorer 或 Firefox 不支持 &lt;input type="month"&gt; 元素。 ### 訪問 Month 對象 您可以通過使用 getElementById() 來訪問 &lt;input type="month"&gt; 元素: ``` var x = document.getElementById("myMonth"); ``` 提示:您也可以通過遍歷表單的 [elements 集合](/jsref/coll_form_elements.asp "HTML DOM elements 集合")來訪問 Month 對象。 ### 創建 Month 對象 您可以通過使用 document.createElement() 方法來創建 &lt;input type="month"&gt; 元素: ``` var x = document.createElement("INPUT"); x.setAttribute("type", "month"); ``` ## Month 對象屬性 | 屬性 | 描述 | | --- | --- | | autocomplete | 設置或返回 month 字段的 autocomplete 屬性值。 | | autofocus | 設置或返回 month 字段在頁面加載后是否應自動獲取焦點。 | | defaultValue | 設置或返回 month 字段的默認值。 | | disabled | 設置或返回 month 字段是否被禁用。 | | form | 返回對包含 month 字段的表單的引用。 | | list | 返回對包含 month 字段的 datalist 的引用。 | | max | 設置或返回 month 字段的 max 屬性值。 | | min | 設置或返回 month 字段的 min 屬性值。 | | name | 設置或返回 month 字段的 name 屬性值。 | | readOnly | 設置或返回 month 字段是否是只讀的。 | | required | 設置或返回在提交表單之前是否必須填寫 month 字段。 | | step | 設置或返回 month 字段的 step 屬性值。 | | type | 返回 month 字段的表單元素類型。 | | value | 設置或返回 month 字段的 value 屬性值。 | ### 標準屬性和事件 Month 對象支持標準[屬性](/jsref/dom_obj_all.asp "HTML DOM Element 對象")和[事件](/jsref/dom_obj_event.asp "HTML DOM Event 對象")。 ## 相關頁面 HTML 教程:[HTML 表單](/html/html_forms.asp) HTML 參考手冊:[HTML &lt;input&gt; 標簽](/tags/tag_input.asp) HTML 參考手冊:[HTML &lt;input&gt; type 屬性](/tags/att_input_type.asp)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看