当前位置:网站首页>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
}边栏推荐
猜你喜欢
随机推荐
Jmeter常见问题处理及常用功能
GeoServer入门学习:07-发布多层级TIF地图大图数据
360杜跃进ISC演讲:保障信创软件的可信性和安全性是信创安全体系的基础
第十三届蓝桥杯(Web 应用开发)线上模拟赛【第九题】(知乎首页数据动态化)
Iterative version of preorder traversal, inorder traversal, and postorder traversal of binary tree
C#版网络对战五子棋以及Socket通信
怎样在网上开户买股票比较安全?如何办理开户业务?
如何改变数组对象里面的key 键名字
Getting Started with GeoServer: 04-Publishing Shapfile Map Data
C语言打印杨辉三角
[Method for converting timestamp to normal time format]
【Oracle的NVL函数用法】
【Life Growth】——Xiaobai's Growth Adventures
2 Scrapy
并发和并行——从线程,线程池到任务
Redis Bloom Filter
去噪论文 Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising
amd和Intel的CPU到底哪个好?
Flask 教程 第十章:邮件支持
Flask 教程 第五章:用户登录








