您的位置:首页 > 移动开发 > Objective-C

Hash - a javascript dictionary object.

2014-01-07 21:59 246 查看
  Hash,in wikipedia, may relevant to many stuffs.

  In javascript, hash is a group of name/value pairs where a unique name points to a unique value, and are included within a brace.

  

var hash = {
vari01 : "OK",
vari02 : "KO"
};
console.log("Out put key/value:");
for(i in hash){
console.log(hash[i]);
}

Out put key/value:
OK
KO
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: