当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > ASP.NET教程:eval()函数详解

ASP.NET
Web服务器控件:LinkButton控件
Web服务器控件:ListBox控件
Web服务器控件:ListItem控件
Web服务器控件:Literal控件
Web服务器控件:Panel控件
Web服务器控件:PlaceHolder控件
Web服务器控件:RadioButton控件
Web服务器控件:RadioButtonList控件
Web服务器控件:BulletedList控件
Web服务器控件:Style控件
Web服务器控件:Table控件
Web服务器控件:TableCell控件
Web服务器控件:TableRow控件
Web服务器控件:TextBox控件
Web服务器控件:XML控件
Validation服务器控件:CompareValidator控件
Validation服务器控件:CustomValidator控件
Validation服务器控件:RangeValidator控件
Validation服务器控件:RegularExpressionValidator控件
Validation服务器控件:RequiredFieldValidator控件

ASP.NET教程:eval()函数详解


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-28   浏览: 69 ::
收藏到网摘: n/a

可以这样说,绝大多数的大型网站都会用到eval()函数,虽然一直在用,但其具体含义及使用还真没特别去注意过,搜索了下也没有什么明确的解释。

翻译过来的中文释义大体如下:

C# eval ()函数,是一个用来求值的解析表达式,支持布尔型(Boolean),二进制方式,算法,一元,所属,

成员(例如:object.property 对象属性),索引值(数组索引);条件函数,也支持变量赋值。

其有点在于:

无需运行时编译;

无需使用JScript.NET;

无需使用数据表。


英文如下:

C# eval function

parse expression and evaluate it. Supports Boolean, Bitwise, Arithmetic, Unary, Paren, Member (such as object.property ), Indexer (such as array[index]) and ConditionalIf(?:), also supports Variable assign.

you can use it like evaluate one statement C# source code.

not use runtime Compiler.

not use JScript.NET.

not use DataTable