4 回复
< view class = "main" > < view class = "section" > < textarea id = "idrecord" class = "record" maxlength = "0" bindchange = "bindChange" value = "{{record}}" placeholder = "聊天记录" auto-height /> </ view > < view class = "section" > < form > < input id = "idsendmsg" class = "sendtxt" bindchange = "bindChange" value = "{{sendmsg}}" placeholder = "消息" type = "text" auto-focus /> < view class = "btn-area" > < button form-type = "reset" type = "primary" bindtap = "btnSendMsg" >发送消息</ button > </ view > </ form > </ view > |
需要清空的加在form里,button设置为form-type
=
“reset”