当前位置:网站首页>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,并且不是字符串。
改成下面就解决了:

这就解决这个报错问题了!
温馨提示:开发中还是要严格根据跟后台商量好的数据类型来写代码
边栏推荐
- 互斥锁、自旋锁、读写锁……理清它们的区别和应用
- Machine learning strong foundation program 0-4: popular understanding of Occam razor and no free lunch theorem
- 卷积神经网络模型之——LeNet网络结构与代码实现
- 基于百问网IMX6ULL_PRO开发板移植LCD多点触摸驱动(GT911)
- Arrays常用方法
- Install mujoco and report an error: distutils.errors DistutilsExecError: command ‘gcc‘ failed with exit status 1
- 手写jdbc的使用步骤?
- 【CSDN 年终总结】结束与开始,一直在路上—— “1+1=王”的2021总结
- 备战2022 CSP-J1 2022 CSP-S1 初赛 视频集
- Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
猜你喜欢

Based on Baiwen imx6ull_ Pro development board transplants LCD multi touch driver (gt911)

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

Atcoder beginer contest 261e / / bitwise thinking + DP

电脑里一辈子都不想删的神仙软件
![[Video] visual interpretation of Markov chain principle and Mrs example of R language region conversion | data sharing](/img/6e/9e0abf8db5ec93080033bd89605ac2.jpg)
[Video] visual interpretation of Markov chain principle and Mrs example of R language region conversion | data sharing

Mlx90640 infrared thermal imager temperature sensor module development notes (V)

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

Redis可视化工具RDM安装包分享

0710RHCSA

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
随机推荐
MLIR原理与应用技术杂谈
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
Shell common script: judge whether the file of the remote host exists
Date and time function of MySQL function summary
Common operations for Yum and VIM
牛客论坛项目部署总结
录制和剪辑视频,如何解决占用空间过大的问题?
stable_ Baselines quick start
QGIS加载在线地图:高德、天地图等
Atcoder beginer contest 261 f / / tree array
Migrate PaloAlto ha high availability firewall to panorama
[six articles talk about scalablegnn] around www 2022 best paper PASCA
[machine learning] experimental notes - emotion recognition
并发编程之并发工具集
为提高效率使用ParallelStream竟出现各种问题
Leetcode 113. 路径总和 II
工业互联网的内涵及其应用
G027-OP-INS-RHEL-04 RedHat OpenStack 创建自定义的QCOW2格式镜像
Detailed explanation of the training and prediction process of deep learning [taking lenet model and cifar10 data set as examples]
vim基础操作汇总