2019年9月12日

绘图工具

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文

posted @ 2019-09-12 15:59 他们说我没幽默感 阅读(72) 评论(0) 推荐(0)

学生管理系统

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文

posted @ 2019-09-12 15:57 他们说我没幽默感 阅读(120) 评论(0) 推荐(0)

猜拳游戏

摘要: // 猜拳游戏 // 清屏函数 let clear = () => process.stdout.write(process.platform 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'); let readline = require("readline- 阅读全文

posted @ 2019-09-12 15:55 他们说我没幽默感 阅读(107) 评论(0) 推荐(0)

斗地主发牌程序

摘要: //斗地主发牌程序 //洗牌函数 shuffle() 接收一个数组 let shuffle = function(pokers){ for(let i=0;i<pokers.length;i++) { let random = parseInt(Math.floor(Math.random()*54 阅读全文

posted @ 2019-09-12 15:53 他们说我没幽默感 阅读(331) 评论(0) 推荐(0)

2019年8月30日

弹幕

摘要: Document 发送 阅读全文

posted @ 2019-08-30 14:26 他们说我没幽默感 阅读(106) 评论(0) 推荐(0)

双色球

摘要: Document 开始 停 阅读全文

posted @ 2019-08-30 14:25 他们说我没幽默感 阅读(76) 评论(0) 推荐(0)

2019年8月23日

杨辉三角

摘要: let readline = require("readline-sync"); console.log("请输入杨辉三角的行数: "); let line=readline.question(); let arr=[];//声明一个数组来存储杨辉三角里面的数 let str = ""; // 用于 阅读全文

posted @ 2019-08-23 15:21 他们说我没幽默感 阅读(90) 评论(0) 推荐(0)

找出字符串中出现次数最多的英文 以及出现的次数

摘要: let str="dhgddfhdsgfmhdgffbdhhgbfgshfgaf"; let ldf={},world; for(let i=0;i<str.length;i++){ world=str[i]; if(ldf[world]){ ldf[world]++ }else{ ldf[world]=1; } } var max... 阅读全文

posted @ 2019-08-23 15:20 他们说我没幽默感 阅读(284) 评论(0) 推荐(0)

2019年8月18日

HTML之表单元素

摘要: A、表单元素都是放在<form></form>标签内的。来看看表单的属性 属性 值 描述 accept MIME_type 规定通过文件上传来提交的文件的类型 accept-charset charset 服务器处理表单数据所接受的字符集 enctype MIME_type 规定表单数据在发送到服务 阅读全文

posted @ 2019-08-18 22:46 他们说我没幽默感 阅读(135) 评论(0) 推荐(0)

运算符

摘要: 算术运算符: + - * / % ++ -- 比较运算符: > >= < <= != == !== 逻辑运算符: && || ! 赋值运算符: = += -= *= /= 字符串运算符: + 连接,两边操作数有一个或两个是字符串就做连接运算 注意: + 除了可以表示加法运算还可以用于字符串的连接 例 阅读全文

posted @ 2019-08-18 22:41 他们说我没幽默感 阅读(91) 评论(0) 推荐(0)

导航