旧方法: dojo.toJson({x: 5, y: 3}) 1.8版本方法: require(["dojo/json"], function(json){ json.stringify({x: 5, y: 3}) }); 来自东子的博客