charCodeAt

種類メソッド
書式 文字列.charCodeAt(位置)
解説
指定された位置の文字コードを返します。
サンプルコード
function sampleCode()
{
str = "SAMPLE";
n = str.charCodeAt(0);
txtField.data = n;
}
sampleCode();
0);
outputs[0] = n;
実際のスクリプトをダウンロード