如题,如何存储一个json数据 db.query("INSERT table SET?",[params],callback) params 网页一个application/json 格式数据 json格式数据中有个key的值是json,就是嵌套json 存储的时候查看数据库存的是Object object
闭关修行中......
JSON.strigify see more api
That means your object is a js object and has not been converted into a json string. You have to store the string directly into the database.
JSON.strigify see more api
That means your object is a js object and has not been converted into a json string. You have to store the string directly into the database.