logo

Mootools Hash: constructor2012-09-10

方法 Hash constructor

语法:
var myHash = new Hash([object]);

参数:
1. object - (mixed) A hash or object to implement.

返回:
• (hash) A new Hash instance.

例子:
var myHash = new Hash({
aProperty: true,
aMethod: function(){
return true;
}
});
alert(myHash.has('aMethod')); //Returns true.

相关话题

热门搜索

  • Mootools
  • Hash
  • constructor

扫描二维码分享话题