Yahoo JSONP Ajax Request Wrapped in callback function

前端 未结 5 2002
孤独总比滥情好
孤独总比滥情好 2020-12-06 21:38

I understand that I can make a crossdomain ajax call with jquery, .ajax, and jsonp. I am calling the yahoo stock quote api. Everything is working and the result is returning

5条回答
  •  误落风尘
    2020-12-06 22:24

    Here is the working example : See the callback=? at the end of my query to make it work. This example can be copied past as a standalone html .

    https://github.com/cirs/PortfolioApp/blob/master/PortfolioApp-Step1-GetData.html

提交回复
热议问题