wxml代码input type='text' value='{{content}}' bindinput="getContentValue"/inputbutton catchtap="sendMsg"发送/button
js代码data:开通浴室柜小程序电话:4006-838-530 { content: '',//input框绑定的值 },//获取co开通纸尿裤小程序电话:4006-838-530开通新能源车小程序电话:4006-838-530ntent的值getContentValue: function(e){this.setData({ content: e.detail.value })},//点击发送后清空content值sendMsg: function(){this.setData({ content: '' })},
最新评论