Javascript "Associative Arrays" Considered Harmful

Note that you shouldn't use an array as an associative array. You can use plain objects instead, although doing so comes with its own caveats. See the post Lightweight JavaScript dictionaries with arbitrary keys as an example.


你可能感兴趣的:(Javascript "Associative Arrays" Considered Harmful)