客户端代码是这样的:
var blocks = [];
$("#content .window").each(function (idx, elem) {
var $elem = $(elem);
blocks.push({
BlockId: $elem.attr('id'),
BlockContent: $elem.html(),
BlockX: parseInt($elem.css("left"), 10),
BlockY: parseInt($elem.css("top"), 10)
});
});
var serliza = JSON.stringify(blocks);
stringify之后的格式是这种: [{"xxx":"xxx","xxx":"xxx"},{"xxx":"xxx","xxx":"xxx"}]
但是json.net官方doc的sample中没有对这种格式的解析方法
求救呀