<form bindsubmit="submitForm">
<text class="key">内容<text>
<input name="title" maxlength="100" value="{{title}}" />
<button formType="submit">提交button>
form>
submitForm:function(e){
var title = e.detail.value.title;
......
success: function (res) {
//将title值设置空
that.setData({
title: ''
}
}
}