9

How do I access the results array from the following page using Google Chrome's console?

twitter.com/search.json?q=stackexchange

I keep getting this error:

ReferenceError: results is not defined

enter image description here

enter image description here

4

2 に答える 2

8

この結果セットを便利な方法で参照することが本当に必要な場合は、Chrome 用の JSON ビューアーの 1 つ(できればJSONView ) をインストールするだけです。

プラグインをインストールしたくない場合は、次を実行してください。

JSON.parse($('.webkit-line-content').innerHTML);

ページのコンソールで:

view-source:https://search.twitter.com/search.json?q=stackexchange
于 2013-04-30T11:23:34.267 に答える