將 Unicode 編碼轉爲一個字符: 根據數字獲取字母ABC,如果超出了Z=90的範圍,用多位字母表示
function getChar( int ind) {
var char = String.fromCharCode(65 + ind);//將 Unicode 編碼轉爲一個字符:
if (ind >= 26) {//65+25=90 ==>Z 65=>A
char = String.fromCharCode(65 + (parseInt(ind / 26) - 1)) + String.fromCharCode(65 + ind % 26)
}
return char;
}
JAVA 用轉換單個
public static String fromCharCode(int i)
{
String strValue=""+(char)i;
return strValue;
}