訪問JSON我有此JSON在我的要求下如何通過jQuery
$.get("/shop_possystems/index.php?route=module/cart/ajax_get_individual_prices¤t_id=" + current_id + "&standard_id=" + standard + "&professional_id=" + professional + "&premium_id=" + premium + "&quantity=" + quantity,
function(data) {
var standard_price = data.standard_price;
var professional_price = data.professional_price;
var premium_price = data.premium_price;
console.log(data);
$prettyCheckBox0.text(standard_price);
$prettyCheckBox1.text(professional_price);
$prettyCheckBox2.text(premium_price);
});
的問題是,data.standard_price返回undefined但在執行console.log我有這個
"{"standard_price":"included","professional_price":"add $792.00","premium_price":"add $3372.00"}"
什麼該交易