当前位置:网站首页>Uncaught SyntaxError: Octal literals are not allowed in strict mode.
Uncaught SyntaxError: Octal literals are not allowed in strict mode.
2022-07-25 13:23:00 【刺心疯】
js控制台报错:Uncaught SyntaxError: Octal literals are not allowed in strict mode.
代码场景:

错误原因是:JS严格模式禁止使用八进制字面量,在我的if判断中使用了0开头的001,并且不是字符串。
改成下面就解决了:

这就解决这个报错问题了!
温馨提示:开发中还是要严格根据跟后台商量好的数据类型来写代码
边栏推荐
- Excel import and export source code analysis
- [machine learning] experimental notes - emotion recognition
- Detailed explanation of the training and prediction process of deep learning [taking lenet model and cifar10 data set as examples]
- My creation anniversary
- mysql函数汇总之日期和时间函数
- 央行数研所穆长春:数字人民币可控匿名是维护公众利益和金融安全的客观需要
- Friends let me see this code
- Introduction and features of numpy (I)
- Design and principle of thread pool
- In order to improve efficiency, there are various problems when using parallelstream
猜你喜欢

从输入网址到网页显示

Excel record macro

The interviewer asked me: how much do you know about MySQL's storage engine?

6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略

并发编程 — 内存模型 JMM

【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)

Atcoder beginer contest 261e / / bitwise thinking + DP

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

Django 2 ----- 数据库与Admin

0710RHCSA
随机推荐
The simplest solution of the whole network 1045 access denied for user [email protected] (using password:YES)
[CSDN year-end summary] end and start, always on the way - "2021 summary of" 1+1= Wang "
基于百问网IMX6ULL_PRO开发板驱动AP3216实验
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
基于百问网IMX6ULL_PRO开发板移植LCD多点触摸驱动(GT911)
并发编程之AQS
[ai4code final chapter] alphacode: competition level code generation with alphacode (deepmind)
错误: 找不到或无法加载主类 xxxx
【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)
Migrate PaloAlto ha high availability firewall to panorama
Numpy快速入门
Basic knowledge of binary tree
0719RHCSA
mujoco_ Py Chinese document
[figure attack and Defense] backdoor attacks to graph neural networks (sacmat '21)
Introduction and features of numpy (I)
Generate SQL script file by initializing the latest warehousing time of vehicle attributes
Based on Baiwen imx6ull_ Pro development board transplants LCD multi touch driver (gt911)
In order to improve efficiency, there are various problems when using parallelstream
Summary of Niuke forum project deployment