摘要:
方法一:引用using Microsoft.JScript.dll然后使用Eval.JScriptEvaluate方法具体如下:string result = string.Format("({0}-{1})/100",500,100);Console.WriteLine(Microsoft.JScript.Eval.JScriptEvaluate(result, Microsoft.JScript.Vsa.VsaEngine.CreateEngine()).ToString());方法二:str_value = new DataTable().Compute(string 阅读全文