js 定义数组转json
var msgData = {} msgData["url"] = openUrl msgData["courseName"] = val.name JSON.stringify(msgData)
注意:定义数组时不能为"new Array()" 应该为"{}"
var msgData = {} msgData["url"] = openUrl msgData["courseName"] = val.name JSON.stringify(msgData)
注意:定义数组时不能为"new Array()" 应该为"{}"