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フィールドのフォーム要素タイプを表す文字列。 |
|---|
Input Month オブジェクト 其他扩展