diff --git "a/\351\231\210\351\233\205\346\245\240/1.txt" "b/\351\231\210\351\233\205\346\245\240/1.txt" new file mode 100644 index 0000000000000000000000000000000000000000..8ea0a3e6f1099fb1b729b3dfc57bbf3c120f451d --- /dev/null +++ "b/\351\231\210\351\233\205\346\245\240/1.txt" @@ -0,0 +1 @@ +971 \ No newline at end of file diff --git "a/\351\231\210\351\233\205\346\245\240/2.txt" "b/\351\231\210\351\233\205\346\245\240/2.txt" new file mode 100644 index 0000000000000000000000000000000000000000..9f728587959d189de8b5dcadab2b3aec1276a169 --- /dev/null +++ "b/\351\231\210\351\233\205\346\245\240/2.txt" @@ -0,0 +1 @@ +88 \ No newline at end of file diff --git "a/\351\231\210\351\233\205\346\245\240/files.js" "b/\351\231\210\351\233\205\346\245\240/files.js" new file mode 100644 index 0000000000000000000000000000000000000000..d6fd2ca9313f8137f04f4b0bd46002a19e6b04a6 --- /dev/null +++ "b/\351\231\210\351\233\205\346\245\240/files.js" @@ -0,0 +1,23 @@ +'use strict'; +var fs=require('fs'); + +var max = 0; +var maxfile = ''; + +for (let index = 1; index <=2 ; index++) { + //随机 Math.random()*(最大值-最小值+1)+最小值 + + var a=Math.floor(Math.random()*(1000-1+1)+1) + + //创建文件 + var b =""+a+""; + fs.writeFileSync("./"+index+".txt",b); + + if (Number(b) > max) { + max = Number(b); + maxfile = "./"+index+".txt"; + } +} +// console.log(max); +console.log(maxfile); + diff --git "a/\351\231\210\351\233\205\346\245\240/idemo.html" "b/\351\231\210\351\233\205\346\245\240/idemo.html" new file mode 100644 index 0000000000000000000000000000000000000000..56efbdba61ff12f90f864930b9a85eac0259666d --- /dev/null +++ "b/\351\231\210\351\233\205\346\245\240/idemo.html" @@ -0,0 +1,12 @@ + + +
+ + + +