= ["", "u62fe", "u4f70", "u4edf", "u4e07", "u4ebf"], arr_2 = ["", "u4e07", "u4ebf"];
varマスクstr = arr_1.slice(1).join("");
// var
for (var i = 0; i < arr.length; i ) {
_index_ = i;
int1 = _index_ % _step_;
int2 = parseInt(_index_ / _step_);
if (int2 > 0 & int1 == 0) {
if (maskstr.indexOf(arr3[arr3.length - 1]) != -1) {
arr3.pop();
}
arr3.push(arr_2[int2]);
}
if (arr[i] > 0) {
if (int1 > 0) {
arr3.push(arr_1[int1]);
}
}
arr3.push(arr2[arr[i]]);
}
arr3.reverse();
return arr3.join("");< /スパン>
}
测试:
zhen('12345');
->"壹万贰仟叁佰肆拾伍"