@
chemzqm 完全不懂JS。。。求大神解答,倒数第三行 key = tim , 我想不通过他这个JS,用PHP能否算出这个key?
if (E == "<img alt=\"df\" src=\"images/loading2.gif\">") {
var num = $('#textbox').val();
if (! (/[^[0-9]/.test(num)) && num.length == 15) {
var mas = new Array(3);
var ind = 0;
for (iii = 0; iii < 3; iii++) {
mas[iii] = new Array(5);
for (ggg = 0; ggg < 5; ggg++) {
mas[iii][ggg] = num.charAt(ind);
ind++
}
}
var result = "";
for (iii = 4; iii >= 0; iii--) {
for (ggg = 0; ggg < 3; ggg++) {
result = result + mas[ggg][iii]
}
}
var tim = "";
for (iii = 0, ggg = 13; iii < 7; iii++, ggg--) {
tim += (parseInt(result.charAt(iii), 10) + parseInt(result.charAt(ggg), 10)) % 10
}
key = tim
}
}