①charAt(): 选中字符串内第几个元素 ②charCodeAt():字符串内,选中的那个元素的编码 ③String.fromCharCode():根据编码找出所对应的元素 ④ indexOf():找出元素对应的位置(从前往后找) ⑤lastIndexOf():找出元素对应的位置(从后往前...
分类:
编程语言 时间:
2015-06-25 17:04:32
阅读次数:
124
Array.prototype.S = String.fromCharCode(2);Array.prototype.in_array = function (e) { var r = new RegExp(this.S + e + this.S); return (r.test(this.S .....
分类:
Web程序 时间:
2015-06-09 16:20:00
阅读次数:
128
String构造函数本身还有一个静态方法:fromCharCode()。这个方法的任务是接收一或多个字符编码,然后将它们转换成一个字符。从本质上来看,这个方法与实例方法charCodeAt()执行的是相反的操作。例如:alert(String.fromCharCode(104,101,108,1.....
分类:
其他好文 时间:
2015-05-30 01:46:23
阅读次数:
120
Array.prototype.S=String.fromCharCode(2);?
Array.prototype.in_array=function(e){?
??var?r=new?RegExp(this.S+e+this.S);?
??return?(r.test(this.S+this.join(this.S)+this.S));?
}; Jquery 中 ...
分类:
编程语言 时间:
2015-05-26 10:53:44
阅读次数:
412
在放大镜效果中代码中有Please upgrade to full version of Magic Zoom Plus?去除办法:在 magiczoom 去版本 magiczoomplus.js 中,将return String.fromCharCode(14 ^ u.charCodeAt(0))...
分类:
其他好文 时间:
2015-05-18 16:19:05
阅读次数:
129
① String 字符串对象fromCharCode() 静态方法, 用作为参数而传递的字符代码创建一个新的字符串。length 字符串的长度。charAt() 抽取字符串中指定位置的字符。charCodeAt() 返回字符串中指定位置的字符编码。concat() 把一...
分类:
编程语言 时间:
2015-04-25 14:58:54
阅读次数:
161
//ASCII码转换字符function asciiToStr(code) { //alert("code:" + code + "\r\n字符:" + String.fromCharCode(code)); return String.fromCharCode(code);}//字符转...
分类:
Web程序 时间:
2015-01-15 20:04:27
阅读次数:
207
1 var str = "liuzhanqi"; 2 document.write(str["length"]);//等价str.l ength 3 4 var str = string.fromcharcode(72, 101, 108, 108, 111, 33); 5 document...
分类:
编程语言 时间:
2014-12-30 22:06:54
阅读次数:
253
click me 用a标签来弹窗"> 在网页过滤了 如果想缩短,可以把上面的参数合并,像这样:String.fromCharCode(76,90,83,66);"> 遇到过滤") 也就是调用js文件xxx 如果想缩短,可以把上面的参数合并,像这样:String.fromCharCode(76,90....
分类:
其他好文 时间:
2014-12-30 22:05:36
阅读次数:
501
fromCharCode() 可接受一个指定的 Unicode 值,然后返回一个字符串。最大一个汉字document.write(String.fromCharCode('0x9fa5'));
分类:
其他好文 时间:
2014-12-20 16:45:06
阅读次数:
168