Call web service from jQuery

后端 未结 1 806
余生分开走
余生分开走 2021-01-28 19:51

I\'m trying to use jQuery to consume my Web service and just basically need the web service to call functions that\'s all.

The code I\'m using in .NET is this:



        
1条回答
  •  伪装坚强ぢ
    2021-01-28 20:21

    You can use an ajax request using .get()

    Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol. Script and JSONP requests are not subject to the same origin policy restrictions.

    0 讨论(0)
提交回复
热议问题