new WSyncWebdataClient(optopt) → {Object}
- Description:
瀏覽器端之資料同步器
- Source:
Example
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object |
<optional> |
{}
|
輸入設定物件,預設{} Properties
|
Returns:
回傳前端資料同步物件,可監聽事件refreshTags、refreshState、refreshTable、getData、error,可使用函數updateTableTags、pollingTableTags
- Type
- Object
Methods
(async, static) pollingTableTags()
- Description:
主動觸發輪詢更新各資料表之時間戳
- Source:
Example
wsdc.pollingTableTags()
(static) setTableTags(tableTags)
- Description:
直接設定各資料表時間資料
- Source:
Example
let tableTags = {...}
wsdc.setTableTags(tableTags)
Parameters:
Name | Type | Description |
---|---|---|
tableTags |
Object | 輸入各資料表時間戳物件 |
(async, static) updateTableTags(tableTags)
- Description:
主動更新指定資料表之時間戳,當有新的資料表時間戳資料時調用此函數進行更新
- Source:
Example
let tableTags = {...}
wsdc.updateTableTags(tableTags)
Parameters:
Name | Type | Description |
---|---|---|
tableTags |
Object | 輸入各資料表時間戳物件 |