2019年8月26日

摘要: 21点游戏 分为人机对战和人人对战 玩家每次抽一张牌 牌的点数为1-10点随机数 谁更接近21点谁就获胜 let readline = require("readline-sync"); let clear = () => process.stdout.write(process.platform 阅读全文

posted @ 2019-08-26 00:22 牛顿8848 阅读(258) 评论(0) 推荐(0) 编辑

摘要: let str='asjfhsdgbmzxgaudsnfkjndgjkdsngnzbdsjkbgjkdsbg'; let wjy={},word; // let len=str.length; for(let i = 0;i<str.length;i++){ word=str[i]; if(wjy[word]){ wjy[word]++ }else{ wjy[word]=1; } } var ma 阅读全文

posted @ 2019-08-26 00:17 牛顿8848 阅读(127) 评论(0) 推荐(0) 编辑

2019年8月20日

摘要: 浮动 属性 常规流 浮动 Margi-left-auto 尽量撑满包含块 0px margin-right:auto 尽量撑满包含块 0px margin-top:auto 0px 0px margin-bottom:auto 0px 0px width:auto 尽量撑满包含块 适应内容宽度 he 阅读全文

posted @ 2019-08-20 09:10 牛顿8848 阅读(108) 评论(0) 推荐(0) 编辑

摘要: //九九乘法表 let i,j,str; for(i=1;i<=9;i++) { str = ""; for(j=1;j<=i;j++) { str = str+i+'*'+j+'='+(i*j)+" "; } console.log(str); } 阅读全文

posted @ 2019-08-20 09:07 牛顿8848 阅读(140) 评论(0) 推荐(0) 编辑

2019年8月13日

摘要: css-Operation Mekong.css CSS-all.css css-publi.css 阅读全文

posted @ 2019-08-13 15:19 牛顿8848 阅读(454) 评论(0) 推荐(0) 编辑

2019年7月26日

摘要: 使用CSS盒模型中的border来实现 如图的三角形 先为元素添加宽度/高度,和边框 再设置边框厚度; 把元素高宽设置为0; 再隐藏其余3个方向的边框。 阅读全文

posted @ 2019-07-26 13:59 牛顿8848 阅读(321) 评论(1) 推荐(0) 编辑