【发布时间】:2018-12-25 21:37:13
【问题描述】:
例如我有哈希
var sample={};
sample["test"] = [];
sample["test"].push({name: "test"});
sample["test"].push({name: "test"});
样本哈希应该只包含唯一值。
【问题讨论】:
-
你说的
sample hash是什么意思 -
样本中的值应该只包含唯一记录
-
在示例 {} 或 [] 中?
-
那么
sample == { "test": ["boo", "hoo"], "other": ["hoo"] }是否有效?
标签: javascript jquery hash