记录下来吧 const encrypted = Symbol('encrypted') function encrypt(object) { if (! object[encrypted]) { object[encrypted] = true // 做加密 } return object }
记录下来吧