构造一个json
let postData = {};
postData["text"] = msgContent
postData["headImage"] = that.$store.state.sendToUser.headImage
postData["nickname"] = that.$store.state.sendToUser.nickname
在用JSON.stringify转为字符串,字符串中出现"
"{"text":"41","headImage":"https://images.decor01.com/shui_0019.jpg","nickname":"草根"}"
陪伴而非守候
慕尼黑的夜晚无繁华
相关分类