如何在JavaScript中进行关联数组/散列
我需要使用JavaScript存储一些统计信息,就像我在C#中这样做:
Dictionary<string, int> statistics;statistics["Foo"] = 10;statistics["Goo"] = statistics["Goo"] + 1;statistics.Add("Zoo", 1);JavaScript中是否有Hashtable类似的东西Dictionary<TKey, TValue>?
我怎么能以这种方式存储价值?
Helenr
动漫人物
慕斯王
随时随地看视频慕课网APP
相关分类