console.log(hotel_detail); //hotel_detail是一个数组或对象 console.log(JSON.stringify(hotel_detail)); //转成字符串 console.log($.parseJSON(s)); //转成数组。