複雜的事情簡單化
只要使用 jQuery.parseJSON 附上範例
var response=jQuery.parseJSON('"ret":"test"');只要字串是正確的json格式這時response 就是json object
沒有留言:
張貼留言