jQuery.parseJSON

window. function(){


    


    var obj = jQuery.parseJSON('[{ "address": "a", "email": "[email protected] ", "name": "test5 ", "id": "6 "},{ "address": "2 ", "email": "[email protected] ", "name": "test5 ", "id": "6 "}]');


var str='';


    $.each(obj,function(idx,item){


        str += getText(item.address, item.email, item.name, item.id);


    });


    alert(str);


    


}


function getText(address,email,name,id) {


    var str = '$'+address+'$'+email+'$'+name+'$'+id;



    return str;


}

你可能感兴趣的:(jQuery.parseJSON)