标签:
var message = new Object();
message.event = "test";
message.params = new Object();
message.params.a = "dfasgasgsg";
var json = JSON.stringify(message);
console json :
{"event":"test","params":{"a":"dfasgasgsg"}}
标签:
原文地址:http://www.cnblogs.com/difme/p/5614047.html