vusion-micro-data
used for vusion-micro
usage
; ;;;
api
publish
publish a topic with data, support clean data
function (topic: string, data: any): Function
const cancel = ;;
subscribe
subscribe a topic, support run once and cancel
function (topic: string, func: Function, once?: boolean): Function
const cancel = ;;
resetTopic
reset topic queue and data
function (topic: string, isSaveData?: boolean): void
;
clearTopic
clear topic data
function (topic: string): void
;