摘要: 指令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(46) 评论(0) 推荐(0)
摘要: 终端:contral+c 停止 contral+c contral+c 退出 webstrom 的破解码:http://idea.imsxm.com/ node。js 初始化第一个项目 npm init :在终端先进入该文件的位置然后 初始化... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(53) 评论(0) 推荐(0)
摘要: var 随机变量 = randFn(20,30);:产生20-30之间的随机数;; 键盘监听:用上下左右键 控制物体上下左右移动移动 //键盘监听事件 document.onkeydown = function(e){ switch(e.k... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(46) 评论(0) 推荐(0)
摘要: // 游戏资源正在加载 >>isloadingFinish = true; //开始加载所有资源 var imgs = ["img/background.png", "img/bomb.png", "img/bullet1.png", "img/bull... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(36) 评论(0) 推荐(0)
摘要: 开始游戏 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(40) 评论(0) 推荐(0)
摘要: 按键 键码 按键 键码 A 65 6(数字键盘) 102 B 66 7(数字键盘) 103 C 67 8(数字键盘) 104 D 68 9(数字键盘) 105 E 69 * 106 F 70 ! 33 ... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(6420) 评论(0) 推荐(1)
摘要: (1)SyntaxError SyntaxError是解析代码时发生的语法错误 // 变量名错误 var 1a; // 缺少括号 console.log 'hello'); (2)ReferenceError ReferenceError是引用一个... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(243) 评论(0) 推荐(0)
摘要: 2015-3-27 $(window).height(); 才是窗口的宽高,而且一直不变 document.body.clientHeight,在文档内容有滚动条的时候远大于$(window).height(); 实际例子,向下滑动判断 $(docu... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(255) 评论(0) 推荐(0)
摘要: 此博主总结的挺好,不在复制过来 了。。。。 http://www.cnblogs.com/2050/p/3409129.html 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(18) 评论(0) 推荐(0)
摘要: 1哥哥浮动要影响弟弟()。 2弟弟浮动要看哥哥(哥哥不浮动 / 哥哥浮动)。 弟弟浮动(哥哥不浮动): (当弟弟浮动时候哥哥也浮动)哥哥弟弟一起浮动: 3哥哥弟弟浮动都不会超出父亲。 以下来自 :http://www.d... 阅读全文
posted @ 2022-06-23 18:11 ·一库 阅读(41) 评论(0) 推荐(0)