ãã¹ã¦ã®ãªãã¸ã§ã¯ãããã¼ã«ã§ããããã·ã¥ã®æ§ãªãã® - ITæ¦è¨ ãããªããããã¡ããªã function Dictionary() { this.initialize.apply(this, arguments); } Dictionary.prototype = { initialize: function() { this.hash = {}; }, put: function(k, v) { var key = [typeof k, k]; this.hash[key] = v; }, get: function(k) { var key = [typeof k, k]; return this.hash[key]; } }; var dict = new Dictionary; dict.put(1, 2) dict.put('1', 3) var f = function()
{{#tags}}- {{label}}
{{/tags}}