From 07e55e03ded9a8c51bdcdec5edb5ddf3c3f17089 Mon Sep 17 00:00:00 2001 From: unknown <2833605196@qq.com> Date: Sun, 16 Oct 2022 00:15:23 +0800 Subject: [PATCH] =?UTF-8?q?06=E9=99=88=E6=A2=85=E9=A6=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022.10.14\344\275\234\344\270\232.html" | 59 +++++++++++++++++++ .../2022.10.14js\347\254\224\350\256\260.md" | 36 +++++++++++ 2 files changed, 95 insertions(+) create mode 100644 "06\351\231\210\346\242\205\351\246\231/\344\275\234\344\270\232/2022.10.14\344\275\234\344\270\232.html" create mode 100644 "06\351\231\210\346\242\205\351\246\231/\347\254\224\350\256\260/2022.10.14js\347\254\224\350\256\260.md" diff --git "a/06\351\231\210\346\242\205\351\246\231/\344\275\234\344\270\232/2022.10.14\344\275\234\344\270\232.html" "b/06\351\231\210\346\242\205\351\246\231/\344\275\234\344\270\232/2022.10.14\344\275\234\344\270\232.html" new file mode 100644 index 0000000..1acb4e1 --- /dev/null +++ "b/06\351\231\210\346\242\205\351\246\231/\344\275\234\344\270\232/2022.10.14\344\275\234\344\270\232.html" @@ -0,0 +1,59 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git "a/06\351\231\210\346\242\205\351\246\231/\347\254\224\350\256\260/2022.10.14js\347\254\224\350\256\260.md" "b/06\351\231\210\346\242\205\351\246\231/\347\254\224\350\256\260/2022.10.14js\347\254\224\350\256\260.md" new file mode 100644 index 0000000..050bb95 --- /dev/null +++ "b/06\351\231\210\346\242\205\351\246\231/\347\254\224\350\256\260/2022.10.14js\347\254\224\350\256\260.md" @@ -0,0 +1,36 @@ +2022.10.14js笔记 + +类型转换 + +1.基本数据类型 + +number,bollean,string,null,undefined + +typeof:查看数据类型 + +2.隐士类型转换 + ++,-,*,%!》,==,++ + +isnan()检查是不是非数,是数字返回false + +number(a)转换成数字 + +失败显示nan:number类型的非数 + +parseInt(a,radix) + +radix:要转换为10进制的进制 + +tofixed(n):保留小数点后n位 + +a.tostring(radix)将十进制的a转换为radix进制 + +打印在网页上:document.wrice(); + +弹窗:alert(); + +弹窗接收数据:prompt(); + +打印出值:consloe,log() + -- Gitee