/** use as java.lang.String for java programmer! becasuse String is a Object of JavaScirpt,we named
javascript在WEB编程中能起到很大的作用,将一些常用的功能写成javascript类库。 将下面代码保存为Common.js 类库功能: 1.Trim(str)--去除字符串
/** core.js version 1.2 author treeroot since 2005-5-24 */ //Object Object.prototype.getClass=fun
/** * use as java.util.HashSet */ function testHashSet(){ alert("HashSet test begin:");
/** use as ArrayList for java programmer */ function testArrayList(){ alert("ArrayList test
/** * Integer for Java * offen used for HashMap,HashSet, as same to Java! */ function testInteger()
<html> <head> <title> String.Format() in JS. </title> </head> <body
String.length 作用:这实际上是 String 类的一个属性,但是由于 JavaScript 将全角、半角均视为是一个字符,在一些实际运用中可能会造成一定的问题,现在我们通过 prot
<script> //测字符串实际长度 String.prototype.Tlength = function(){var arr=this.match(//ig);return this
重新载入javascript文件的方法(给js定个id),自己封装成一个方法方便大家使用: function reloadAbleJSFn(id,newJS) { var oldjs = null