Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Weather

Index

Constructors

Methods

Constructors

constructor

Methods

getForecast

  • getForecast(district: string, callback: (errorStatus: any, result: WeatherForecastResult) => void): void
  • 查询四天预报天气,包括查询当天天气信息

    Parameters

    • district: string

      支持城市名称/区域编码(如:“杭州市”/“330100”)

    • callback: (errorStatus: any, result: WeatherForecastResult) => void

      当请求成功时ErrorStatus为null,当请求不成功时ErrorStatus为Obj

    Returns void

getLive

  • getLive(district: string, callback: (errorStatus: any, result: WeatherLiveResult) => void): void
  • 查询实时天气信息

    Parameters

    • district: string

      支持城市名称/区域编码(如:“杭州市”/“330100”)

    • callback: (errorStatus: any, result: WeatherLiveResult) => void

      当请求成功时ErrorStatus为null,当请求不成功时ErrorStatus为Obj

    Returns void

Generated using TypeDoc