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

这就解决这个报错问题了!
温馨提示:开发中还是要严格根据跟后台商量好的数据类型来写代码
边栏推荐
- Gym安装、调用以及注册
- 0710RHCSA
- C # basic learning (XXIII)_ Forms and events
- Mujoco+spinningup for intensive learning training quick start
- Pycharm cannot input Chinese solution
- TCP的拥塞控制
- 0719RHCSA
- 领域驱动模型设计与微服务架构落地-模型设计
- [review SSM framework series] 15 - Summary of SSM series blog posts [SSM kill]
- Migrate PaloAlto ha high availability firewall to panorama
猜你喜欢

Introduction to web security UDP testing and defense

并发编程 — 内存模型 JMM
详解浮点数的精度问题
TCP的拥塞控制

Django 2 ----- database and admin

Error: cannot find or load main class XXXX

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

Memory layout of program

深度学习的训练、预测过程详解【以LeNet模型和CIFAR10数据集为例】

The migration of arm architecture to alsa lib and alsa utils is smooth
随机推荐
卷积神经网络模型之——VGG-16网络结构与代码实现
[review SSM framework series] 15 - Summary of SSM series blog posts [SSM kill]
0717RHCSA
互斥锁、自旋锁、读写锁……理清它们的区别和应用
C#基础学习(二十三)_窗体与事件
【GCN-RS】Towards Representation Alignment and Uniformity in Collaborative Filtering (KDD‘22)
Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)
Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
OAuth, JWT, oidc, you mess me up
Friends let me see this code
My creation anniversary
Summary of Niuke forum project deployment
The simplest solution of the whole network 1045 access denied for user [email protected] (using password:YES)
How to solve the problem of taking up too much space when recording and editing videos?
【CSDN 年终总结】结束与开始,一直在路上—— “1+1=王”的2021总结
The migration of arm architecture to alsa lib and alsa utils is smooth
机器学习强基计划0-4:通俗理解奥卡姆剃刀与没有免费午餐定理
TCP的拥塞控制
arm架构移植alsa-lib和alsa-utils一路畅通