ES6 WeakMap ES6 for_of 循环 ES6 使用WeakSet ES6 WeakMap 'use strict' let weakMap = new WeakMap(); let obj = {}; console.log(weakMap.set(obj,"hello")); console.log(weakMap.has(obj));// true ES6 for_of 循环 ES6 使用WeakSet