梦之都
JavaScript教程
fromCharCode
函数示例
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>JavaScript fromCharCode() 函数示例</title> </head> <body> <script type="text/javascript"> var str = String.fromCharCode(119,119,119,46,100,114,101,97,109,100,117,46,99,111,109); document.write(str); document.write("<br />"); str = String.fromCharCode(26790,20043,37117); document.write(str); </script> </body> </html>