判断把值定为 false 集合 JavaScript里把 null.undefined.0.''.NaN 都视为false,而其他值一概为 true Map Map是一组键值对的结构,具有极快的查找速度. 不管查询的表多大,查找速度不会变慢 var m = new Map(['Ben', 95], ['Mark', 100],['Jack', 99]); m.get('Ben'); // 95 Map需要先进行初始化,下面的例子是上面的详细版 var m = new Map(); m.set('…
[背景] 使用之中发现一些eclipse使用的小技巧,记录下来供以后查阅 Eclipse保存preferences,并导入到其他workspaces The Export wizard can be used to export preferences from the Workbench to the local file system. To export a preference file: Select File > Export . In the Export wizard sel…