摘要: valueOf var a = { value: 1 , valueOf: function() { return this.value++; } } Symbol.toPrimitive var a = { value: 1 , get[Symbol.toPrimitive]() { return 阅读全文
posted @ 2024-05-17 15:10 Robot-Blog 阅读(4) 评论(0) 推荐(0) 编辑