如何在JavaScript中進行關聯數組/散列我需要使用JavaScript存儲一些統計信息,就像我在C#中這樣做:Dictionary<string, int> statistics;statistics["Foo"] = 10;statistics["Goo"] = statistics["Goo"] + 1;statistics.Add("Zoo", 1);JavaScript中是否有Hashtable類似的東西Dictionary<TKey, TValue>?我怎么能以這種方式存儲價值?
如何在JavaScript中進行關聯數組/散列
Helenr
2019-08-29 08:44:01