📄 unicode.js
字号:
// create and initialize three strings
var str = "Code Fun", enc = "", unc = "";
// get the str Unicode numbers, comma delimited
for( var i = 0; i < str.length; i++ )
{
enc += str.charCodeAt( i ) + ",";
}
// split the list of numbers into array elements
var ss = enc.split( "," );
// convert the Unicode values back to characters
for( i = 0; i < ss.length; i++ )
{
unc += String.fromCharCode( ss[i] );
}
alert( "Encoded : " +enc+ "\nUnencoded : " +unc );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -