购买者订阅是否有库存商品let storeObj = {}; // 定义发布者
storeObj.list = []; // 缓存列表,存放订阅的回调函数
// 添加订阅者
storeObj.listen = fun
2021-10-09