【文件属性】:
文件名称:knockout.observableSet:Knockout JS的Observable Set对象。 灵感来自[knockout.observableDictionary](https
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-02 12:25:16
JavaScript
Knockout.observableSet
Knockout JS的Observable Set对象。 灵感来自
如何使用
该库需要支持JavaScript Set对象的浏览器。 (有关更多信息,请参见和)
[removed][removed]
[removed][removed]
以下示例代码基于
var mySet = new ko.observableSet();
mySet.add(1);
mySet.add(5);
mySet.add("some text");
var o = {a: 1, b: 2};
mySet.add(o);
mySet.has(1); // true
mySet.has(3); // fal
【文件预览】:
knockout.observableSet-master
----ko.observableSet.js(3KB)
----LICENSE(1KB)
----demo.html(1KB)
----README.md(2KB)