日期:2014-05-16 浏览次数:20642 次
<script type="text/javascript" src="http://www.coding123.net/js/jquery.js"></script>
<script type="text/javascript" src="http://www.coding123.net/rardownload/20110420/20110420113851756.js"></script>
<script>
var json = { site: 'http://www.coding123.net/', name: '编程设计网' };
alert(json.toJSONString())
$.ajax({ url: 'xxxxxx.action',
data: { json: json.toJSONString() }, //
type: 'POST',
success: function (data) { /*成功执行回调*/ },
error: function (xhr) { alert(xhr.status+'\n'+xhr.responseText)}
})
</script>
var json = { site: 'http://www.coding123.net/', name: '编程设计网' };
alert(json.toJSONString())////////////////下面的这个输出这样