如何在JavaScript中從URL獲取JSON?此URL返回JSON:{
query: {
count: 1,
created: "2015-12-09T17:12:09Z",
lang: "en-US",
diagnostics: {},
...
}}我試過這個,但它不起作用:responseObj = readJsonFromUrl('http://query.yahooapis.com/v1/publ...');var count = responseObj.query.count;console.log(count) // should be 1如何從此URL的JSON響應(yīng)中獲取JavaScript對象?
如何在JavaScript中從URL獲取JSON?
慕運(yùn)維8079593
2019-08-01 15:48:00