2012-12-18 87 views

回答

9

我已經找到了答案我自己。

我將價值傳遞到請求url script-in-json。 simplay改變它爲json

+1

拉納的自我回答也是我的解決方案 - 我使用的是'json腳本'而不是簡單'json'。我需要知道還有哪些其他格式/選項可用。感謝Rana的回答,我知道用Google查詢什麼是正確的。 https://developers.google.com/feed/v1/devguide#load_the_javascript_api_and_ajax_search_module – 2013-03-24 14:53:32

+1

非常感謝。我使用了API文檔中的建議url參數,並且我試圖用jQuery解析JSON。這工作。謝謝拉娜 – Vincent

1
$json = gdata.io.handleScriptLoaded({key:value}); 
    $res = json_decode($json); 
    print $res->{'key'}; // it prints your value 
+0

'試圖獲得非對象的財產' –