wxml代码

input type='text' value='{{content}}' bindinput="getContentValue"/inputbutton catchtap="sendMsg"发送/button

js代码

data: {    content: '',//input框绑定的值  },//获取content的值getContentValue: function(e){this.setData({    content: e.detail.value    })},//点击发送后清空content值sendMsg: function(){this.setData({    content: ''    })},

TAG标签: 微信小程序微信怎么清空朋友圈

http://www.xiaochengxub.com/read-106154.html