TaffyDB - 一个适用于浏览器的 开源 JavaScript 数据库
请参阅 官方网站 以获取更全面的文档。
// 将蓝光播放器的价格更新为 89.99
products({item:1}).update({price:89.99});
// 循环遍历记录并调用函数
products().each(function (r) {alert(r.name)});
// 根据价格降序对记录进行排序
products.sort("price desc");
// 只选择项目名称并将其存储到数组中
products().select("name"); // 返回 ["3D TV","Blue Ray Player"]暂无开放 Issues,或尚未同步最近议题。