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 0000000000000000000000000000000000000000..0c6d86e46822ec0225f64bf62b7d78d1b267b0e9 --- /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 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 0000000000000000000000000000000000000000..db503c41a9248032566df58ae7c8c53ce326a302 --- /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] : '输入错误'); + + +