返回JSON字符串数据格式踩坑记录:
function formatMessage(str){
try {
str= JSON.parse(str);
} catch {
str = str || ""
}
}
返回JSON字符串数据格式踩坑记录:
function formatMessage(str){
try {
str= JSON.parse(str);
} catch {
str = str || ""
}
}