当前位置:网站首页>Uncaught SyntaxError: Octal literals are not allowed in strict mode.
Uncaught SyntaxError: Octal literals are not allowed in strict mode.
2022-07-25 13:29:00 【Psychosis】
js Console error :Uncaught SyntaxError: Octal literals are not allowed in strict mode.
Code scenario :

The reason for the error is that :JS Strict mode prohibits the use of eight Base number Literal , In my if Used in judgment 0 At the beginning 001, And not a string .
Change it to the following :

This solves the problem of error reporting !
reminder : During development, we should write code strictly according to the data type negotiated with the background
边栏推荐
猜你喜欢

【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)

Convolutional neural network model -- lenet network structure and code implementation

JS Array indexOf includes sort() 冒号排序 快速排序 去重和随机样本 random

Discussion on principle and application technology of MLIR

0716RHCSA

How to solve the problem of taking up too much space when recording and editing videos?

Django 2 ----- database and admin
HTTP cache tongtianpian, there may be something you want

【CSDN 年终总结】结束与开始,一直在路上—— “1+1=王”的2021总结

Brpc source code analysis (III) -- the mechanism of requesting other servers and writing data to sockets
随机推荐
Esp32-c3 is based on blinker lighting control 10 way switch or relay group under Arduino framework
Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
程序员成长第二十七篇:如何评估需求优先级?
手写jdbc的使用步骤?
Install mujoco and report an error: distutils.errors DistutilsExecError: command ‘gcc‘ failed with exit status 1
C#基础学习(二十三)_窗体与事件
【AI4Code】《IntelliCode Compose: Code Generation using Transformer》 ESEC/FSE 2020
Blocking queue for concurrent programming
Based on Baiwen imx6ull_ Pro development board transplants LCD multi touch driver (gt911)
Django 2 ----- database and admin
【服务器数据恢复】HP EVA服务器存储RAID信息断电丢失的数据恢复
Common operations for Yum and VIM
Hcip day 10 notes
0720RHCSA
Introduction to web security UDP testing and defense
【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22
二叉树基本知识
Leetcode 113. 路径总和 II
从输入网址到网页显示
uniapp处理后台传输图片