JSON数据我有这样的JSON响应:如何到达括号内
google.friendconnect.container["renderOpenSocialGadget"](
{
height: 200,
url: "http://username.github.io/",
"view-params": {"style":"light","url":"https://www.facebook.com/username","height":"258"},
"prefs": {"style":"light","url":"https://www.facebook.com/username","height":"258"}
}, skin);
我想达到的值,如高度,网址,查看-PARAMS,但不能。 我尝试这样做,但它并没有奏效:
console.log(google.friendconnect.container["renderOpenSocialGadget"].url);
这不是JSON ... –
@JeffMercado不管它是JSON与否,我怎样才能得到括号内的值? –
@maskedmagician最好的解决方案可能是从服务器请求JSON。那可能吗? –