文件名称:bicycle:JavaScript的数据获取和同步库
文件大小:1.98MB
文件格式:ZIP
更新时间:2024-05-22 09:53:49
TypeScript
自行车 JavaScript的数据同步库 安装 npm install bicycle 用法 客户 import BicycleClient from 'bicycle/lib/client' ; const client = new BicycleClient ( ) ; const subscription = client . subscribe ( { todos : { id : true , title : true , completed : true } } , ( result , loaded ) => { // note that if `loaded` is `false`, `result` is a partial result console . dir ( result . todos ) ; } , ) ; // to disp