From 63006e47bd71c2bea38a0552e428ab01ba590e70 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 16 Apr 2020 11:18:21 +0800 Subject: [PATCH] Update form.md --- docs/component/form.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/component/form.md b/docs/component/form.md index d58e92fff..6acc5dc39 100644 --- a/docs/component/form.md +++ b/docs/component/form.md @@ -95,9 +95,9 @@ ![uniapp](https://img-cdn-qiniu.dcloud.net.cn/uniapp/doc/img/form.png?t=201857) -**微信小程序注意事项** +**小程序端注意事项** -微信小程序端在`from`内的自定义组件内有`input`等表单控件时,无法在`form`的`submit`事件内获取组件内表单控件值,此时可以使用微信提供的[behaviors](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/behaviors.html)来做一下兼容。参考以下示例: +小程序端在`from`内的自定义组件内有`input`等表单控件时,无法在`form`的`submit`事件内获取组件内表单控件值,此时可以使用`behaviors`,示例如下: ```html @@ -141,13 +141,7 @@