因为要做一个微信小程序商品的评论功能,使用的是editor富文本编辑器,请问如何获取到用户输入的内容,并且传给后端
在editor中输入的内容如何获取通过接口传给后端?How to get the content entered in the editor and pass it to the backend through the interface?
在editor中输入的内容如何获取通过接口传给后端?因为要做一个微信小程序商品的评论功能,使用的是editor富文本编辑器,请问如何获取到用户输入的内容,并且传给后端
Because we want to make a comment function of wechat applet products, we use the editor rich text editor. How can I get the user input content and pass it to the back end
回答:
bindinput
wxml:bindinput="bindinput"js: bindinput(e){ console.log("输入了啥:",e.detail); },
bindinput
https://developers.weixin.qq.com/miniprogram/dev/component/editor.html