摘要: 1 const readline = require('readline-sync')//引用readline-sync 2 console.log('欢迎进入猜拳游戏'); 3 //电脑随机出拳 4 let fn = function (min, max) { 5 if (!max) {//当max没有值时 6 max = min; 7 m... 阅读全文
posted @ 2018-05-26 11:43 YKmaster 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: 1 const readline = require('readline-sync')//引用readline-sync 2 let arr = [['zhang', '123', 2000], ['yang', '123456', 3000]]; 3 //登陆 4 let add = function () { 5 let s = 2;//输入错误的次数 6 wh... 阅读全文
posted @ 2018-05-26 11:41 YKmaster 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: const readline = require('readline-sync')//引用readline-sync let s = 2;//错误的次数 for (let i = 0; i < 3; i++) { console.log('请输入名:(由英文组成)'); let user = rea 阅读全文
posted @ 2018-05-20 15:46 YKmaster 阅读(1845) 评论(0) 推荐(0) 编辑
摘要: console.log('请输入三个数:'); let num1 = readline.question() - 0; let num2 = readline.question() - 0; let num3 = readline.question() - 0; let num4; if (num1 阅读全文
posted @ 2018-05-19 13:35 YKmaster 阅读(4245) 评论(0) 推荐(0) 编辑
摘要: ...js //输入一个三位数,水仙花数就是个位的三次方+十为的三次方+百位的三次方之和等于本身 console.log('请输入一个三位数:'); let a = readline.question(); if (a > 100 && a <= 999) { if (parseInt(a / 10 阅读全文
posted @ 2018-05-19 13:33 YKmaster 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/reset.css"/> <link rel="stylesheet" h 阅读全文
posted @ 2018-05-12 16:58 YKmaster 阅读(2371) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/reset.css"/> <link rel="stylesheet" h 阅读全文
posted @ 2018-05-12 16:54 YKmaster 阅读(25434) 评论(1) 推荐(2) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/reset.css"/> <link rel="stylesheet" h 阅读全文
posted @ 2018-04-30 17:04 YKmaster 阅读(676) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/html"><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/r 阅读全文
posted @ 2018-04-22 17:20 YKmaster 阅读(831) 评论(0) 推荐(0) 编辑
摘要: HTML内容元素中图片元素 使用img元素:src属性:图片路径。 alt属性:图片无法显示的时候使用替代文本,title属性:鼠标悬停时显示文本内容。 在同一张图片上点击不同的位置链接到不同的页面上 使用map,和area元素(map是area的父元素) 加上id或者name是为了解决兼容性。 s 阅读全文
posted @ 2018-04-22 11:05 YKmaster 阅读(2582) 评论(0) 推荐(0) 编辑