JavaScript 文字列操作 新しいページはコチラ
提供: yonewiki
(→文字コード変換(1文字→ISO Latin-1コード) charCodeAt) |
(→文字コード変換(1文字→ISO Latin-1コード) charCodeAt) |
||
428行: | 428行: | ||
document.write(strData15, " ,文字コード変換 ->"); | document.write(strData15, " ,文字コード変換 ->"); | ||
− | for(n = | + | for(n = 0;n < strData15.length;n++){ |
document.write(strData15.charCodeAt(n), ", "); | document.write(strData15.charCodeAt(n), ", "); | ||
} | } | ||
442行: | 442行: | ||
document.write(strData15, " ,文字コード変換 ->"); | document.write(strData15, " ,文字コード変換 ->"); | ||
− | for(n = | + | for(n = 0;n < strData15.length;n++){ |
document.write(strData15.charCodeAt(n), ", "); | document.write(strData15.charCodeAt(n), ", "); | ||
} | } |