JSONPConnection

Base class for an in-flight JSONP request.

已弃用: see https://angular.io/guide/http

      
      interface JSONPConnection extends Connection implements Connection {
  readyState: ReadyState
  request: Request
  response: Observable<Response>
  finished(data?: any)

  // 继承自 http/Connection
  readyState: ReadyState
  request: Request
  response: any
}
    

属性

属性说明
readyState: ReadyState

The ReadyStateof this request.

request: Request

The outgoing HTTP request.

response: Observable<Response>

An observable that completes with the response, when the request is finished.

方法

Callback called when the JSONP request completes, to notify the application of the new data.

finished(data?: any)
      
      finished(data?: any)
    
参数
data any

可选. 默认值是 undefined.