From 30c77d658daf6d2e79e5b1a42de4e81c4748277c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=99=E5=BC=A0=E5=85=88=E6=9D=B0=E2=80=98?= <‘19892226650@139.com’> Date: Thu, 13 Oct 2022 23:26:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\346\254\241\344\275\234\344\270\232.html" | 58 +++++++++++++++++++ ...00\346\254\241\344\275\234\344\270\232.md" | 3 + 2 files changed, 61 insertions(+) create mode 100644 "38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.html" create mode 100644 "38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" diff --git "a/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.html" "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.html" new file mode 100644 index 0000000..d8b88a4 --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.html" @@ -0,0 +1,58 @@ + + + + + + + Document + + + + + + \ No newline at end of file diff --git "a/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..ff0ae19 --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-13-js\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,3 @@ +1.导入js文件运行 相对路径:同一个文件夹 绝对路径:从绝对路径 2.直接嵌套进去 + + + + + + + \ No newline at end of file -- Gitee From abcc064ee93f8449aa03a69f7f34ddb35a59fda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=88=E6=9D=B0?= <19892226650@139.com> Date: Mon, 17 Oct 2022 01:43:33 +0000 Subject: [PATCH 3/3] =?UTF-8?q?38=E5=BC=A0=E5=85=88=E6=9D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张先杰 <19892226650@139.com> --- ...14\346\254\241\344\275\234\344\270\232.md" | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 "38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-14-js\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" diff --git "a/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-14-js\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-14-js\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..21c869b --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-10-14-js\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,22 @@ +| 1.Switch | | | +| -------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| | [2](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_2) | 2.基本数据类型: number , boolean, string, null , undefined | +| | [3](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_3) | var a = '5'+1 // + 其中有一个是字符串, 默认是字符串的连接 | +| | [4](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_4) | var a = '5' // | +| | [5](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_5) | var b = a**2 // + - ** 、 %隐式类型转化 | +| | [6](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_6) | var b = -a | +| | [7](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_7) | console.log('类型:' + typeof b + '值:' + b);//查看数据是什么类型 | +| | [8](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_8) | 3.显示数据类型 | +| | [9](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_9) | NaN : 非数 number | +| | [10](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_10) | Number():转换成数字,失败会变成 NaN | +| | [11](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_11) | false:0 true:1 null:0 undefined:NaN | +| | [12](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_12) | | +| | [13](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_13) | parseInt(a,radix): 将(radix)进制 转成 10进制 | +| | [14](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_14) | //var a = 'F' //-->0 1 2 3 4 5 6 7 8 9 A B C D E F | +| | [15](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_15) | //var b = parseInt(a,16) | +| | [16](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_16) | | +| | [17](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_17) | String():转成字符串 | +| | [18](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_18) | toFixed(n):保留小数点后n位 | +| | [19](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_19) | a.toString(radix):将十进制数的a转换成radix进制的数 | +| | [20](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_20) | isNaN(): 是不是非数,是数字的话--》false 不是数字--》true | +| | [21](https://gitee.com/level-21-software-class-4/java-script/pulls/13/files#92235d944c8d200216d53b115a72c0ed911dfc34_0_21) | Math: 舍入 ceil(向上取整) floor(向下取整) round(四舍五入) | \ No newline at end of file -- Gitee