To input negative number just prefix your literal with - sign (unary minus operator):-0b11010 // -26有关二进制文字的说明,请参见数字文字.Specification for binary literals is in section Numeric Literals.相关片段: NumericLiteral ::(...)BinaryIntegerLiteralNumericLiteral :: (...) BinaryIntegerLiteral BinaryIntegerLiteral :: 0b BinaryDigitsBinaryIntegerLiteral :: 0b BinaryDigits和BinaryDiggits是0和1. 这篇关于ECMAScript 6否定二进制文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 08:08