<script>
var json1 = { "id": 1, "tagName": "apple" };
$("#fm").click(function () {
var aa = $.param(json1);
var a0 = aa.replace(/&/g," ");
alert(a0);
</script>
效果图