解决方法
第308行:
$.get("/filter/tags",{q: a,newstyle: !0},"json").done(function(c) { C["t_" + a] = c; StackExchange.helpers.removeSpinner(); b(c) })
这可能会帮助你!
事实证明,
API网址是这样的:
https://stackoverflow.com/filter/tags?q=STRING&newstyle=BOOLEAN
> q – 查询文本.
newstyle – 需要新的风格.结果将在JSON中返回新的样式,其他信息如同义词和摘录.
DEMO:http://jsfiddle.net/DerekL/bXXb7/(使用跨域请求jQuery plguin)
例如:
https://stackoverflow.com/filter/tags?q=htm
会给你:
"html|99829\nhtml5|16359\nxhtml|4143\nhtml-parsing|1461\nhtml-lists|1328\nhtml5-video|949"
其中99829是问题的数量.我花了15分钟的时间查看源代码,找出这个api. -_-”
[{"Name":"javascript","Synonyms":"classic-javascript|javascript-execution","Count":223223,"Excerpt":"JavaScript is a dynamic language commonly used for scripting in web browsers. It is NOT the same as Java. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript and JScript). If a framework or library,such as jQuery,is used,include that tag as well. Questions that don't include a framework/library tag,implies that the question requires a pure JavaScript answer."},{"Name":"javascript-events","Synonyms":"javascript-event","Count":5707,"Excerpt":"Creating and handling JavaScript events inline in HTML or through a script."},{"Name":"facebook-javascript-sdk","Synonyms":"","Count":992,"Excerpt":"Facebook's JavaScript SDK provides a rich set of client-side functionality for accessing Facebook's server-side API calls. These include all of the features of the REST API,Graph API,and Dialogs."},{"Name":"javascript-library","Count":675,"Excerpt":"A JavaScript library is a library of pre-written JavaScript which allows for easier development of JavaScript-based applications,especially for AJAX and other web-centric technologies."},{"Name":"javascript-framework","Count":563,"Excerpt":"A JavaScript framework is a library of pre-written JavaScript which allows for easier development of JavaScript-based applications,{"Name":"unobtrusive-javascript","Count":340,"Excerpt":"Unobtrusive JavaScript is a general approach to the use of JavaScript in web pages."}]
你可以从那里得到什么