首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在JavaScript中执行关联数组/散列?

如何在JavaScript中执行关联数组/散列?

提问于 2017-12-14 11:55:11
回答 2关注 0查看 212

"用如何使用JavaScript计算/存储一些统计信息,C#中的等效代码在下面?

Dictionary<string, int> statistics;

statistics[""Foo""] = 10;

statistics[""Goo""] = statistics[""Goo""] + 1;

statistics.Add(""Zoo"", 1);"

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档