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

这就解决这个报错问题了!
温馨提示:开发中还是要严格根据跟后台商量好的数据类型来写代码
边栏推荐
- 备战2022 CSP-J1 2022 CSP-S1 初赛 视频集
- 全网最简单解决方式1045-Access denied for user [email protected](using password:YES)
- Connotation and application of industrial Internet
- Introduction to jupyter notebook
- Arrays常用方法
- Oran special series-21: major players (equipment manufacturers) and their respective attitudes and areas of expertise
- Django 2 ----- 数据库与Admin
- 电脑里一辈子都不想删的神仙软件
- 卷积神经网络模型之——AlexNet网络结构与代码实现
- 领域驱动模型设计与微服务架构落地-模型设计
猜你喜欢

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

【CTR】《Towards Universal Sequence Representation Learning for Recommender Systems》 (KDD‘22)

面试官问我:Mysql的存储引擎你了解多少?

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

【视频】马尔可夫链原理可视化解释与R语言区制转换MRS实例|数据分享

Shell common script: check whether a domain name and IP address are connected

【重温SSM框架系列】15 - SSM系列博文总结【SSM杀青篇】

C#基础学习(二十三)_窗体与事件

Django 2 ----- database and admin

Install mujoco and report an error: distutils.errors DistutilsExecError: command ‘gcc‘ failed with exit status 1
随机推荐
Pycharm cannot input Chinese solution
Masscode is an excellent open source code fragment manager
Detailed explanation of the training and prediction process of deep learning [taking lenet model and cifar10 data set as examples]
为提高效率使用ParallelStream竟出现各种问题
详解浮点数的精度问题
The whole process of 6w+ word recording experiment | explore the economical data storage strategy of alluxio
stable_ Baselines quick start
一味地做大元宇宙的规模,已经背离了元宇宙本该有的发展逻辑
Redis可视化工具RDM安装包分享
OAuth, JWT, oidc, you mess me up
[machine learning] experimental notes - emotion recognition
Mujoco+spinningup for intensive learning training quick start
Gym安装、调用以及注册
The interviewer asked me: how much do you know about MySQL's storage engine?
Shell common script: judge whether the file of the remote host exists
0710RHCSA
Excel录制宏
Atcoder beginer contest 261e / / bitwise thinking + DP
Mlx90640 infrared thermal imager temperature sensor module development notes (V)
QGIS加载在线地图:高德、天地图等