abllyboy
abllyboy
关注数: 0
粉丝数: 77
发帖数: 35
关注贴吧数: 1
仿HashTable的Js <script type="text/javascript"> function HashTable() { this._hashtable = {}; if (typeof (_hashtable_initialized) == "undefined") { HashTable.prototype.Add = function(key, value) { if (key in this._hashtable) { return false; } this._hashtable[key] = value; return true; } HashTable.prototype.Remove = function(key) { return delete (this._hashtable[key]); } HashTable.prototype.Count = function() { var i = 0; for (var k in this._hashtable) { i++; } return i; } HashTable.prototype.Items = function(key) { return this._hashtable[key]; } HashTable.prototype.Clear = function() { for (var k in this._hashtable) { delete this._hashtable[k]; } return true; } HashTable.prototype.Contains = function(key) { return typeof (this._hashtable[key]) != "undefined"; } _hashtable_initialized = true; } } </script>
请问一下奥迪Q5的新款什么时候出来啊? 请问一下奥迪Q5的新款什么时候出来啊?
怎么兑换现金呀? 请问怎么兑换现金啊?
#里约奥运会中国加油# 加油吧中国 加油吧中国
1
下一页