JavaScript 文字列操作 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(文字コード変換(1文字→ISO Latin-1コード) charCodeAt)
(文字コード変換(1文字→ISO Latin-1コード) charCodeAt)
428行: 428行:
  
 
document.write(strData15, " ,文字コード変換 ->");
 
document.write(strData15, " ,文字コード変換 ->");
for(n = 1;n <= strData15.length;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 = 1;n <= strData15.length;n++){  
+
for(n = 0;n < strData15.length;n++){  
 
     document.write(strData15.charCodeAt(n), ", ");
 
     document.write(strData15.charCodeAt(n), ", ");
 
}
 
}

2016年7月20日 (水) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス