>[info] H.online(callback);,監聽網絡連接事件,支持雙系統調用。
*****
#### 輸入參數
##### **callback**:回調函數,Function類型,函數傳入參數:
~ ret:JSON對象類型,內部字段:
```
{
connectionType:100 //當前網絡連接類型,如2g、3g、4g、wifi等
}
```
~ err:JSON對象類型,無說明。
*****
#### 使用示例
```
H.online(function(ret,err){
// TODO=>
});
```
- 序言簡介
- 約定與規則
- 捐贈與外包
- 版本迭代
- 開始使用
- 屬性
- appId
- appName
- appVersion
- systemType
- systemVersion
- version
- deviceId
- deviceToken
- deviceModel
- deviceName
- operator
- connectionType
- fullScreen
- screenWidth
- screenHeight
- winName
- winWidth
- winHeight
- frameName
- frameWidth
- frameHeight
- pageParam
- wgtParam
- appParam
- wgtRootDir
- fsDir
- cacheDir
- 事件
- batterylow
- batterystatus
- keyback
- keymenu
- volumeup
- volumedown
- offline
- online
- pause
- resume
- scrolltobottom
- shake
- swipedown
- swipeleft
- swiperight
- swipeup
- tap
- longpress
- viewappear
- viewdisappear
- noticeclicked
- appintent
- smartupdatefinish
- 方法
- v
- M
- trim
- getFileExt
- getAgeForBirthDay
- isNumber
- isPlusDecimal
- isDate
- getNowDateFormat
- transPHPTimestamp
- transJsTimestamp
- isObject
- cloneObj
- extendObj
- isFunction
- isArray
- newGUID
- unique
- addEventListener
- 常量
- 模板引擎
- 語法糖
- 建議收集