[問題] PlainObject 轉換

看板Ajax作者 (PTT新聞)時間12年前 (2013/02/19 15:42), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
有一字串 aa = '{src : "./story/20090612_91.png" , alt : "" , title : "2009/06/12" }'; 想要轉為 Jquery的PlainObject,請問如何? alert($.isPlainObject(aa)); ->false var o = {}; alert($.isPlainObject(o)); ->true -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.175.188

02/19 15:45, , 1F
$.isPlainObject($.parseJSON(aa))
02/19 15:45, 1F
非常感謝~ 感恩 ※ 編輯: pttnews 來自: 59.120.175.188 (02/19 15:49)
文章代碼(AID): #1H8opJ66 (Ajax)
文章代碼(AID): #1H8opJ66 (Ajax)