var enumerables = true;for (var i in {toString: 1}) enumerables = null;if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'constructor'];
請問for (var i in {toString: 1}) enumerables = null;這一句是做什么用的?
為什么要重新處理Object中的方法?
if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'constructor'];
望高人指點(diǎn)!
關(guān)于mootools的一個(gè)問題
翻閱古今
2018-12-06 22:07:44