在editor中输入的内容如何获取通过接口传给后端?

小程序 文章 2020-09-08 09:41 722 0 全屏看文

AI助手支持GPT4.0

在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

Admin²⁰²⁰:
wxml:bindinput="bindinput"js:  bindinput(e){    console.log("输入了啥:",e.detail);  },
友人Y:官方文档上也没说明怎么获取到用户输入的内容呀

-EOF-

AI助手支持GPT4.0