热门
文档:
<input model:value="{{value}}" />
注意:只能绑定一个单一字段
// custom-component.js Component({ properties: { myValue: String }, methods: { update: function() { // 更新 myValue this.setData({ myValue: 'leaf' }) } } })
使用组件
<custom-component model:my-value="{{pageValue}}" />