log(o) { const { type, dateTime, key } = o const oLi = document.createElement('li') let htmlStr = ''
switch (type) { case'get': htmlStr = `${dateTime}: I got the key '${key}', The value of the key is ${o.value} ` break; case'set': htmlStr = `${dateTime}: I got the key '${key}', The oldValue of the key is ${o.oldValue}, The newValue of the key is ${o.newValue}, ` break; default: break; } oLi.innerHTML = htmlStr this.el.appendChild(oLi) } }