From 64260ca5a9b5693d788f4b85a81e00467702c8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=AE=97=E5=B8=85?= <10033721+TXYforever@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 15:36:18 +0000 Subject: [PATCH 1/2] =?UTF-8?q?14=20=E9=83=91=E5=AE=97=E5=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑宗帅 <> --- ...1\346\254\241\344\275\234\344\270\232.txt" | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 "\344\275\234\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.txt" diff --git "a/\344\275\234\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.txt" "b/\344\275\234\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.txt" new file mode 100644 index 0000000..0c6d86e --- /dev/null +++ "b/\344\275\234\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.txt" @@ -0,0 +1,54 @@ + + + + + + + Document + + + + + + + + + \ No newline at end of file -- Gitee From 6d29109ffbe0229f1986c4bc71a9f79d8f26044b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=AE=97=E5=B8=85?= <10033721+TXYforever@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 15:36:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?14=20=E9=83=91=E5=AE=97=E5=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑宗帅 <> --- ...1\346\254\241\347\254\224\350\256\260.txt" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "\347\254\224\350\256\260/\347\254\254\344\270\211\346\254\241\347\254\224\350\256\260.txt" diff --git "a/\347\254\224\350\256\260/\347\254\254\344\270\211\346\254\241\347\254\224\350\256\260.txt" "b/\347\254\224\350\256\260/\347\254\254\344\270\211\346\254\241\347\254\224\350\256\260.txt" new file mode 100644 index 0000000..db503c4 --- /dev/null +++ "b/\347\254\224\350\256\260/\347\254\254\344\270\211\346\254\241\347\254\224\350\256\260.txt" @@ -0,0 +1,19 @@ + + string常用方法 + //输入一个整数,如果是1-10,转成大写,否则提示输入错误 + // str = '一二三四五六七八九十'; + //alert(parseInt(Math.random() * 50) + 1) + //prompt:默认输入的是字符串 + //var a=parseInt(prompt('请输入一个整数')) + // console.log(typeof a); + + // if (a>0&&a<=10) { + // console.log(str[a-1]); + // }else{ + // console.log('输入错误'); + // } + //三目 + // console.log((a>0&&a<=10) ? str[a-1] : '输入错误'); + + + -- Gitee