当前位置:网站首页>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
边栏推荐
- Cv2.resize function reports an error: error: (-215:assertion failed) func= 0 in function ‘cv::hal::resize‘
- Pycharm cannot input Chinese solution
- 2022全球开发者中,你的收入排多少?
- Introduction to web security UDP testing and defense
- [review SSM framework series] 15 - Summary of SSM series blog posts [SSM kill]
- Django 2 ----- database and admin
- [Video] Markov chain Monte Carlo method MCMC principle and R language implementation | data sharing
- Brpc source code analysis (III) -- the mechanism of requesting other servers and writing data to sockets
- Error: cannot find or load main class XXXX
- Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
猜你喜欢
随机推荐
ESP32-C3 基于Arduino框架下Blinker点灯控制10路开关或继电器组
pytorch创建自己的Dataset加载数据集
基于百问网IMX6ULL_PRO开发板移植LCD多点触摸驱动(GT911)
[CSDN year-end summary] end and start, always on the way - "2021 summary of" 1+1= Wang "
Hcip day 8 notes
ES6数组去重 new Set()
Pycharm cannot input Chinese solution
Convolutional neural network model -- lenet network structure and code implementation
0713RHCSA
vim基础操作汇总
Shell common script: get the IP address of the network card
Hcip day 10 notes
【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)
Summary of Niuke forum project deployment
Excel import and export source code analysis
错误: 找不到或无法加载主类 xxxx
外围系统调用SAP的WebAPI接口
Shell common script: check whether a domain name and IP address are connected
【CSDN 年终总结】结束与开始,一直在路上—— “1+1=王”的2021总结
Docker learning - redis cluster -3 master and 3 slave - capacity expansion - capacity reduction building









