Answer

专注于Mobile,WinCE
  首页  :: 新随笔  :: 联系 :: 管理

2012年3月17日

摘要: 方法一:引用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(strin 阅读全文

posted @ 2012-03-17 13:04 answer 阅读(381) 评论(0) 推荐(0) 编辑