js笔记

/*1.前提:IDEA需要设置支持ES6语法

      ·use strict`;严格检查模式

2.数据类型

2.1字符串

1.正常字符串:单引号或者双引号

2.;转义字符\

'
\n
\t
\u4e2d \u### unicode字符
\x41 Ascll字符

3.多行字符串编写
//tab 上面,esc 下面
var msg =
hello world hi
4.字符串长度str.length

5.字符串的可变性,不可变
6.大小写转换
注意这是方法,不是属性
str.toUpperCase()
str.toLowerCase()

*/

posted @ 2023-06-09 22:03  李鑫地图  阅读(11)  评论(0)    收藏  举报