找出 readCache 为什么始终读不到 writeCache 写入的值。
JavaScript
const cacheKey = Symbol('cache');
function writeCache(record, value) {
record[cacheKey] = value;
}
function readCache(record) {
return record[Symbol('cache')];
}
const order = {};
writeCache(order, 7);
console.log(readCache(order));