MS Ajax 客户端编程 学习笔记 (1)

1. 基本类型扩展

Array 扩展:

image

Boolean扩展:

Boolean.parse(“true”);

Date扩展:

image

image

Error 扩展:

image

Number 扩展:

image

image 

String类型扩展:

方法 说明
startsWith(prefix) 判断该String是否以指定的前缀开始
endsWith(suffix) 判断该String是否以指定的后缀结束
trimStart() 移除前面的空白字符
trimEnd() 移除后面的空白字符
trim() 移除开头和结尾的空白字符
String.format(format,args) 格式化该字符串,{0}{1}
String.localeFormat(format,args) 格式化是考虑了区域的设定
   

面向对象的支持:

后补。。。

原文地址:https://www.cnblogs.com/zhucl1006/p/1336453.html