return this.replace(/[0-9a-zA-Z]/g, function(d) {
var e = d.charCodeAt(0), f = 65, g = 26;
//alert(e);
e >= 97 ? f = 97 : e < 65 && ( f = 48, g = 10);
var h = e - f;
return String.fromCharCode((h + a[c++ % b]) % g + f)
})charCodeAt怎么转PHP。。最好整个帮忙下。
var e = d.charCodeAt(0), f = 65, g = 26;
//alert(e);
e >= 97 ? f = 97 : e < 65 && ( f = 48, g = 10);
var h = e - f;
return String.fromCharCode((h + a[c++ % b]) % g + f)
})charCodeAt怎么转PHP。。最好整个帮忙下。
fromCharCode 对应 php 的 chr虽然 js 的这两个方法是针对 unicode 编码的,但你只对 [0-9a-zA-Z] 进行操作,所以并无妨碍