在此 MDN 页面上:
读者注意使用数据属性:
Also, the performance of reading data-attributes compared to storing this data in a JS data warehouse is poor.
什么是“JS 数据仓库”?
根据上面引用的文本中链接到的 jsPerf 测试用例,“仓库”只是一个 JavaScript 对象。
MDN 页面上引用的文字来源似乎是这篇博文:
最佳答案
Based on the jsPerf test case linked-to in the above quoted text, a "warehouse" is just a JavaScript object.
是的。这是本文中使用的一次性术语,将 JS 对象描述为数据的“仓库”,它并不是指任何一种业界公认的概念。
关于javascript - 什么是 "JS data warehouse"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50240428/