在app.js文件中: const tempStore = require(".通过修改下面的代码,我可以找到另一种方法来获得我期望的结果: 在app.js文件中: const number = tempStore.setTemp(1); // store returned valuein a constant
console.log(number); // show it 在tempStore.js<
我需要动态地执行C#语句,并在运行时声明一些变量。最终用户假设在运行时声明变量(仅具有某些类型,如int,string,List<string>,List<int>, bool etc. )并对其执行操作,或者计算/执行单行表达式。例如,可以动态声明变量,并使用当前调用的变量的值初始化它们,例如:in