疾风kkk
- 发布:2023-07-23 12:38
- 更新:2023-07-23 13:20
- 阅读:181
喜欢技术的前端 - QQ---445849201
if(msg.payload&&typeof msg.payload == 'string'){
var payloadStr = msg.payload.replace(/\s*/g,"")
var body = JSON.parse(payloadStr)
}
这样试试
疾风kkk (作者)
不行,报错
[JS Framework] Failed to execute the callback function:[ERROR] : [JS Framework] Failed to execute the callback function:SyntaxError: JSON Parse error: Expected '}' __ERROR
2023-07-23 13:08