Input Month type 屬性
實例
返回 month 字段的表單元素類型:
var x = document.getElementById("myMonth").type;
The result of x could be:
month
定義和用法
type 屬性返回 month 字段的表單類型類型。
注意:在以上實例中, Opera, Chrome 和 Safari 流覽器返回 "month", 但是 Internet Explorer 和 Firefox 返回 "text"。
流覽器支持
所有主流流覽器都支持 type 屬性。
注意:Internet Explorer 或 Firefox 流覽器不支持使用 type="month" 屬性的 <input> 元素。
語法
monthObject.type
技術細節
返回值: | 字串,表示 month 字段的表單元素類型 |
---|
