JsonpModule

The module that includes jsonp's providers

弃用说明

see https://angular.io/guide/http

class JsonpModule { }

注解

@NgModule({ providers: [ { provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions] }, BrowserJsonp, { provide: RequestOptions, useClass: BaseRequestOptions }, { provide: ResponseOptions, useClass: BaseResponseOptions }, JSONPBackend, ] })