当前位置:网站首页>ESLint: The Function constructor is eval. (no-new-func)错误解决
ESLint: The Function constructor is eval. (no-new-func)错误解决
2022-08-08 21:03:00 【xi邮lj】
let a = new Function('a','b','return a + b') // 有错误
修改为
let a = function(a, b) {
return a + b
}
let a = new Function('return false') // 有错误
修改为
let a = function() {
return false
}
边栏推荐
- 神经网络论文Enhancing deep neural networks via multiple kernel learning
- window下socket(udp)控制台程序
- go基于泛型实现继承
- Iterative version of preorder traversal, inorder traversal, and postorder traversal of binary tree
- 必须初始列初始化的成员
- 磁控胶囊胃镜:具有良好耐受性的非侵入性胃镜检查
- 【Voice of dreams】
- C语言斐波那锲数列前n项求和
- window下socket(TCP)控制台程序
- Flask 教程 第四章:数据库
猜你喜欢
随机推荐
第十三届蓝桥杯(Web 应用开发)线上模拟赛【第十题】(RESTful API 开发)
编译原理——LR(1)分析程序(C#)
常见的病毒(攻击)分类
rancher坑记录
目标检测论文 Few-Shot Object Detection with Attention-RPN and Multi-Relation Detector
C语言斐波那锲数列前n项求和
一下科技:未来短视频行业发展呈四大趋势
目标检测论文 Precise detection of Chinese characters in historical documents with DRL
GeoServer入门学习:07-发布多层级TIF地图大图数据
【Excel template download with information】
C#实现Everything——UI与查询 附源码
第06篇 MEF部件的生命周期(PartCreationPolicy)
charles简单使用
究竟什么才是“云计算” | 科普好文
AtCoder Beginner Contest 263(A~F)
阿里云祝顺民:算力网络架构的新探索
- project experience 】 【 conservation projects
[Method for converting timestamp to normal time format]
Gradle is as simple as using kotlin to write common commands
GeoServer introductory study: 07 - release a larger multi-tiered TIF map data