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"}}
时间: 2024-11-05 17:27:06
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"}}