From f67adac1235d65e6f5a4997caa03b30a282bc348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=8E=AE=E5=96=86?= Date: Mon, 17 Oct 2022 13:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/2022.10.14.html" | 93 +++++++++++++++++++ ...73\345\236\213\350\275\254\346\215\242.md" | 64 +++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 "04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.14.html" create mode 100644 "04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.14-\347\261\273\345\236\213\350\275\254\346\215\242.md" diff --git "a/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.14.html" "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.14.html" new file mode 100644 index 0000000..9078c89 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.14.html" @@ -0,0 +1,93 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git "a/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.14-\347\261\273\345\236\213\350\275\254\346\215\242.md" "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.14-\347\261\273\345\236\213\350\275\254\346\215\242.md" new file mode 100644 index 0000000..985d437 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.14-\347\261\273\345\236\213\350\275\254\346\215\242.md" @@ -0,0 +1,64 @@ +JavaScript + +# 1、数据类型 + +## 1.1 基本数据类型 + +umber:数字类型 + +String:字符串(有下标) + +Boolean:布尔类型 + +Null:空值 + +Underfined:未定义 + +## 1.2 类型转换 + +### 1.2.1 显式类型转换 + +Number(mix) + +parseInt(str,radix) (radix为要转换为十进制int类型的源进制) + +parseFloat(str) + +String(mix) + +toString(radix) + +Boolean() + +# 2、常用类 + +Math.min() + +Math.max() + +Math.ceil() + +Math.floor() + +Math.round() + +Random + +Time + +# 3、循环 + +## 3.1 while循环 + + 起始条件 + while (循环条件) + { +     需要执行的代码 +     迭代因子 + } + +## 3.2 for循环 + + for (起始条件;循环条件;迭代因子) { +     需要执行的代码 +    } -- Gitee