gpt4 book ai didi

javascript - "Attribute hash",那是什么?

转载 作者:行者123 更新时间:2023-11-29 22:30:38 26 4
gpt4 key购买 nike

我正在阅读 the annotated source code of backbone.js它提到“属性哈希”。那是什么?

Set a hash of model attributes on the object, firing "change" unless you choose to silence it.

我的理解是它是一个对象、数组等,还是 hash 特指任何格式?

最佳答案

这是一个对象,真的:

var attributes = {
option1: 'on',
option2: 'off',
option3: true,
option4: 145
};

alert(attributes.option1); // on

关于javascript - "Attribute hash",那是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7128377/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com