MsAjax Lib-> Boolean 类型扩展
来源:互联网 发布:过山车之星优化 编辑:程序博客网 时间:2024/05/01 14:49
Boolean 类型扩展
提供了基于 ECMAScript (JavaScript) Boolean 对象的扩展.
命名空间:无.本扩展类型是全局型的不属于任意一命名空间.
继承:无
语法
var booleanVar = new Boolean(true);
成员扩展
名称
描述
Boolean.parse 函数
将逻辑值的指定字符串表示形式转换为它的等效 Boolean 值。
备注
Boolean型的扩展是Microsoft AJAX 库的一部分. JavaScript Boolean对象提供的成员使之与 .NET 程序结合的更密切.
更多关于 JavaScript 类的扩展类型的消息, 请参见Boolean 类 in the JScript Language Reference.
下面的示例展示了如何创建一个Boolean对象,并使用Microsoft AJAX 库的parse函数从一个逻辑字符串创建一个 Boolean 对象.
JavaScript
var a = new Boolean(true);
if (a == true){
alert("a = true");
}else{
alert("a = false");
}
var b = Boolean.parse("true");
if (b == true){
alert("b = true");
}else{
alert("b = false");
}
请参见
- Boolean 对象
- boolean 数据类型 (JScript)
- new Operator
- JScript Language Reference
- MsAjax Lib-> Boolean 类型扩展
- MsAjax Lib-> Date 类型扩展
- MsAjax Lib-> Error 类型扩展
- MsAjax Lib-> Number 类型扩展
- MsAjax Lib-> Boolean.parse 函数
- MSAJAX对String 类型的扩展
- MsAjax Lib-> Array.enqueue 函数
- MsAjax Lib-> Array.dequeue 函数
- MsAjax Lib-> Array.forEach 函数
- MsAjax Lib-> Array.indexOf 函数
- MsAjax Lib-> Array.insert 函数
- MsAjax Lib-> Array.parse 函数
- MsAjax Lib-> Array.remove 函数
- MsAjax Lib-> Array.removeAt 函数
- MsAjax Lib-> Date.format 函数
- MsAjax Lib-> Date.localeFormat 函数
- MsAjax Lib-> Date.parseLocale 函数
- MsAjax Lib-> Date.parseInvariant 函数
- 欢迎进群...5623253,编程思想...这里需要高手.
- 日文CGI中文化教學
- java访问数据库
- 封装XMLHTTP
- Coding Rules
- MsAjax Lib-> Boolean 类型扩展
- 嘿嘿
- MsAjax Lib-> Boolean.parse 函数
- 禁止自动共享
- 十堰的经典小吃!!
- 强烈推荐!007大战黑衣人 胡戈新作!
- 新的一年。。。
- 总结:几种常见的查找算法
- Teach Yourself Programming in Ten Years