- 博客(5)
- 收藏
- 关注
原创 JS实现元素指向某位置
function createTurret(){//创建指向元素 var turret =document.createElement("div"); var a=document.getElementById("main"); turret.className="Turret"; turret.style.backgroundImage='url(箭头.png)'; turret.style.position="relative"; turret.styl.
2021-12-10 15:45:08
643
原创 【JS】简单滚轮事件
//给页面绑定滑轮滚动事件 if (document.addEventListener) {//firefox document.addEventListener('DOMMouseScroll', shelter, false); }//滚动滑轮触发shelter方法 //ie 谷歌 window.onmousewheel = document.onmousewheel = shelter;function shelter(){ var e = e || window.e.
2021-10-24 15:05:24
101
转载 Ubuntu命令收集
目录文件/文件夹管理... 1系统管理... 1打包解压... 2make编译... 2apt命令... 2其它... 3查看软件xxx安装内容... 3系统... 5硬盘... 6服务... 12日期和时间... 20控制台... 21文件/文件夹管理ls 列出当前目录文件(不包括隐含文件)ls -a 列出当前目录文件(包括隐含文件)ls -l 列出当前目录下文件的详细信息cd .. 回当前目录的上一级目录cd - 回上一次所在的目录cd.
2021-10-24 14:56:43
623
原创 工厂方法模式
FactoyMethod模式是设计模式中应用最为广泛的模式,在面向对象的编程中,对象的创建工作非常简单,对象的创建时机却很重要。FactoryMethod解决的就是这个问题,它通过面向对象的手法,将所要创建的具体对象的创建工作延迟到了子类,从而提供了一种扩展的策略,较好的解决了这种紧耦合的关系。eg.程序员A负责编写宝马三型,宝马四型,宝马五型的类;程序员B通过A创建的类生成需要的对象。 程序员A: class...
2021-10-06 22:35:11
88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人