new Function('antlr4', 'that', content)(antlr4, this)

 

content: 作为函数体的代码片段
'antlr4', 'that':  接受传参的形参
(antlr4, this):  传入的实参
posted on 2023-02-21 15:37  occc  阅读(19)  评论(0编辑  收藏  举报