TUTORIALFrontendFETCHED
Textarea type 属性
Textarea type 属性 Textarea 对象 实例 返回表单元素的类型: [mycode3 type='js'] var x = document.getElementById('myTextarea').type; [/mycode3] 尝试一下 » 定义和用法 type 属性返回表单元素的类型。对于文本框永远是 'textarea'。 浏览..
Updated 7/16/2026
Tutorial detail pages default to noindex.
Textarea type 属性
定义和用法
type 属性返回表单元素的类型。
对于文本框永远是 "textarea"。
浏览器支持
| 属性 | |||||
|---|---|---|---|---|---|
| type | Yes | Yes | Yes | Yes | Yes |
语法
textareaObject.type
返回值
| 返回值: | 返回文本框的类型。 |
Textarea 对象