Regarding the issue that as follows: let i = 011; console.log(i); // 9 But in strict mode, this approach breaks down: "use strict"; let i = 011; // Uncaught SyntaxError: Octal literals are not allowed in strict mode. console.log(i); This means that octal is not supported in strict mode. If you must use it, you can use a roundabout way to save the country: Set the octal data as a string, then convert it through "use strict"; let i = '011'; console.log(parseInt(i, 8)); // 9 This concludes the article on the issue of You may also be interested in:
|
<<: How to deploy Redis 6.x cluster through Docker
>>: Thoughts on truncation of multi-line text with a "show more" button
Table of contents 1. Tool Introduction 2. Workflo...
Table of contents Preface Prepare Implementation ...
<br />For some time, I found that many peopl...
1|0 Compile the kernel (1) Run the uname -r comma...
The following is some basic sql knowledge I have ...
This article uses examples to illustrate the prin...
1. Search mysql in the browser to download and in...
Table of contents mousejoint mouse joint distance...
Table of contents nextTick Mixins $forceUpdate se...
CSS attribute selectors are amazing. They can hel...
Table of contents Written in front What exactly i...
After switching from Vue2's writing style to ...
This article introduces several methods of implem...
Table of contents WXS Response Event Plan A Page ...
1. Overview of viewport Mobile browsers usually r...