Skip to content

Commit 2ead8a9

Browse files
save file
1 parent bff82e0 commit 2ead8a9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blog/25-07-24/http-server/ex/login-server.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@
8383

8484
}//erorr
8585

86+
87+
function cookie(){
88+
89+
var rnd = ()=>Math.floor(Math.random()*10);
90+
var str = '';
91+
for(var i=0;i<10;i++)str+=rnd();
92+
return str;
93+
94+
}//cookie
95+
8696
}//login
8797

8898

0 commit comments

Comments
 (0)