$.post( ‘XXX.php‘, { col: value }, function(data) { var getData = eval( "(" + data + ")" ); //必须用括号,真蛋疼 alert( getData.xx ); } );
jquery操作Ajax返回的JSON值,布布扣,bubuko.com
时间: 2024-12-04 11:05:57
$.post( ‘XXX.php‘, { col: value }, function(data) { var getData = eval( "(" + data + ")" ); //必须用括号,真蛋疼 alert( getData.xx ); } );
jquery操作Ajax返回的JSON值,布布扣,bubuko.com