方法一、在浏览器console命令窗口输入
Ext.getVersion();
方法二、打开ext-all.js文件,上面的注释部分有版本号
其它常见方法:
编号 | 方法和描述 |
---|---|
1 | Ext.String.htmlEncode 此函数用于编码html值以使其可解析。 E.g. Ext.String.htmlEncode("< p > Hello World < /p >"); Output - "< p > Hello World < /p >". |
2 | Ext.String.htmlDecode 此函数用于解码编码的html值 E.g. Ext.String.htmlDecode("< p > Hello World < /p >"); Output - "< p > Hello World < /p >" |
3 | Ext.String.trim 此函数用于删除字符串中不需要的空格。 例如。 Ext.String.trim(\'hello\'); 输出 - “hello" |
4 | Ext.String.urlAppend 此方法用于在URL字符串中附加值 例如。 Ext.String.urlAppend(\'https://www.google.com\',\'hello\'); 输出 - “https://www.google.com?hello" Ext.String.urlAppend(\'https://www.google.com?index=1\',\'hello\'); 输出 - “https://www.google.com?index=1&hello" |
5 | Ext.String.toggle 此函数用于在两个不同的值之间切换值。 例如。 var toggleString =\'ASC\' toggleString = Ext.String.toggle(a,\'ASC\',\'DESC\'); 输出 - DESC作为toggleString具有值ASC。 现在再次如果我们打印相同,我们将获得toggleString =“ASC"这一次,因为它的值\'DESC\'。 它类似于三元运算符 toggleString =((toggleString ==\'ASC\')?\'DESC\':\'ASC\'); |
最后附上官网API链接 官网