Consuming a Web service using Javascript

前端 未结 6 1277
渐次进展
渐次进展 2020-12-09 18:17

Is there a way to consume a web service using JavaScript? I\'m Looking for a built-in way to do it, using a JavaScript framework is not an option.

6条回答
  •  失恋的感觉
    2020-12-09 18:59

    You can create an XMLHttpRequest if the service is hosted within your domain. If not, you will have cross-domain issues.

提交回复
热议问题