数据双向绑定

小程序 文章 2020-08-03 15:01 453 0 全屏看文

AI助手支持GPT4.0

数据双向绑定
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug input 微信安卓客户端 7.0.17 2.0.0

https://developers.weixin.qq.com/miniprogram/dev/component/input.html

model:value={{value}}可以做双向绑定啊,为什么文档上面不写呢,是有什么bug吗?

Framework type problem type API / component name terminal type wechat version basic library version applet bug input wechat Android client 7.0.17 2.0.0 https://developers.weixin.qq.com/miniprogram/dev/component/input.html model:value= {value} can be used for two-way binding. Why not write it on the document? Is there any bug? Code fragment model:value= {{value}}

回答:

昊:

写了,你没看到

-y😪:

正确方法:

<input bindinput="getinput" />

js:

getinput(e){

this.setData({zbmc: e.detail.value})


}

冰箱:

input 可以

-EOF-

AI助手支持GPT4.0