# form - [权限列表](#zh-cn_topic_0000001127284848_section11257113618419) - [子组件](#zh-cn_topic_0000001127284848_section9288143101012) - [属性](#zh-cn_topic_0000001127284848_section2907183951110) - [样式](#zh-cn_topic_0000001127284848_section10683162023215) - [事件](#zh-cn_topic_0000001127284848_section77341431152917) - [方法](#zh-cn_topic_0000001127284848_section2279124532420) - [示例](#zh-cn_topic_0000001127284848_section1241545010391) 表单容器,支持容器内input元素的内容提交和重置。 >![](../../public_sys-resources/icon-note.gif) **说明:** >从 API Version 6 开始支持。 ## 权限列表 无 ## 子组件 支持。 ## 属性 支持[通用属性](js-components-common-attributes.md#ZH-CN_TOPIC_0000001163812208)。 ## 样式 支持[组件通用样式](js-components-common-styles.md#ZH-CN_TOPIC_0000001163932190)。 ## 事件 处支持[通用事件](js-components-common-events.md#ZH-CN_TOPIC_0000001209412119)外,还支持如下事件:

名称

参数

描述

submit

FormResult

点击提交按钮,进行表单提交时,触发该事件。

reset

-

点击重置按钮后,触发该事件。

**表 1** FormResult

名称

类型

描述

value

Object

input元素的name和value的值。

## 方法 支持[通用方法](js-components-common-methods.md#ZH-CN_TOPIC_0000001209252157)。 ## 示例 ```
输入文本 Submit Reset
``` ``` // xxx.js export default{ onSubmit(result) { console.log(result.value.radioGroup) // radio1 or radio2 console.log(result.value.user) // text input value }, onReset() { console.log('reset all value') } } ```