摘要: 方法一:引用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 阅读全文
posted @ 2011-06-29 18:02 Mr▪King 阅读(710) 评论(0) 推荐(0) 编辑