3-4 字符串对象常用方法使用示例.htm

来自「JAVASCRIPT完全自学手册,中源码的验证修订实例」· HTM 代码 · 共 19 行

HTM
19
字号
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312" />
<title>3-4  字符串对象常用方法使用示例</title>
</head>
<body style="overflow:auto; padding:0px; margin:0px;">
<div style="font-size:14px; font-weight:bold; color:white; font-family:Arial, 宋体; background-color:#6090DA; padding:4px 10px;">
    <script>
        document.write("big的效果".big());
        document.write("<br>bold的效果".bold());
        document.write("<br>fontsize=5的效果".fontsize("5"));
        document.write("<br>A的Unicode编码是"+"A".charCodeAt(0));
        document.write("<br>Unicode编码为70的字符是"+String.fromCharCode(70));
        document.write("<br>Test toLowerCase".toLowerCase());
        document.write("<br>Test toUpperCase".toUpperCase());
    </script>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?