随笔分类 -  nodejs

摘要:var jsContentStr1 = fs.readFileSync(path.join(__dirname,"output","newGenEpos.js"),"utf-8"); let jsBodyArr1 = esprima.parseScript(jsContentStr1,{ range 阅读全文
posted @ 2022-12-28 23:11 今天起个早 阅读(194) 评论(0) 推荐(0)
摘要:const vm = require('vm'); const fs = require('fs'); const x = 1; const context = { x: 2 ,myFs =fs }; vm.createContext(context); // Contextify the obje 阅读全文
posted @ 2022-04-22 19:32 今天起个早 阅读(11) 评论(0) 推荐(0)