为什么在JavaScript严格模式中不允许使用八进制数字字面量?这会带来什么危害?
"use strict";
var x = 010; //Uncaught SyntaxError: Octal literals are not allowed in strict mode.
<h1>Check browser console for errors</h1>
chmod 644 file
),在那里使用八进制是有意义的。我很想看到过去10年中(甚至更久)是否存在其他普遍的用例。 - jcaron