9 回复
您好@黄思程以下为代码
<view>
<form bindsubmit=“formSubmit”>
<view class=‘back’>
<view class=‘back_title’>公司地址</view><text class=‘star’>*</text>
<textarea placeholder=‘请输入公司地址’ maxlength=‘104’ class=‘back_input’ value=’{{value}}’ bindblur=“save”></textarea>
</view>
<button class=‘newsbtn’ form-type=‘submit’ disabled=’{{!value||noable}}’>保存</button>
</form>
</view>
js:
save:function(e){
var that = this;
var value = e.detail.value;
that.setData({
value:value
})
},
三星gagalaxy on5(2016)
6.5.19