[]
        
(Showing Draft Content)

httpRequest

HTTPRequest는 웹 어플리케이션이 서버와 데이터를 교환하기 위해 사용하는 기본 메커니즘입니다.

많은 JavaScript 도구 키트 및 프레임워크에는 HTTPRequest를 위한 자체 래퍼(Wrappers)가 있습니다. 예를 들어 Angular에는 $http 서비스가 있고 jQuery에는 ajax() 메서드가 있습니다. 원하시는 걸 Wijmo와 함께 사용할 수 있습니다.

외부 툴킷 및 프레임워크에 대한 의존도를 줄이기 위해선, Wijmo의 단순하고 유연한 httpRequest 메서드를 대신 사용하실 수 있습니다.

예시
wijmo.httpRequest('http://services.odata.org/Northwind/Northwind.svc/Customers?$format=json', {
  success: function (xhr) {
    var response = JSON.parse(xhr.responseText),
        customers = response.value;

    // do something with the customers...
  }
});