Is there a method in angularJS thats equal to getJSON. [Newbie alert]

后端 未结 6 1289
灰色年华
灰色年华 2021-01-12 15:00

I\'m newbie at javascript, angularJS and JQuery, but I have just started programming a angularJS app where i use JQuery to get a JSON from a webserver like this:

<         


        
6条回答
  •  花落未央
    2021-01-12 15:38

    You may use JSONP requests with $http.jsonp

    https://docs.angularjs.org/api/ng/service/$http#jsonp

提交回复
热议问题