<script>
var json1 = { "id": 1, "tagName": "apple" };
$("#fm").click(function () {
var aa = $.param(json1);
var a0 = aa.replace(/\&/g," ");
alert(a0);
</script>
效果图
时间: 2024-11-13 10:06:02
<script>
var json1 = { "id": 1, "tagName": "apple" };
$("#fm").click(function () {
var aa = $.param(json1);
var a0 = aa.replace(/\&/g," ");
alert(a0);
</script>
效果图