摘要:ISBNTitlePrice 3476896 My first HTML $53 5869207 My first CSS $49 // <![CDATA[ var table=document.getElementsByTagName('table')[0]; table.onclick = fu
阅读全文
10 2018 档案
摘要:git 恢复到上一个版本比如执行 git commit 命令之后 做了一些修改 恢复到上一个版本 1.修改一个文件想回到修改前 直接 git checkout -- filename2.修改过文件,又执行了 git add 命令后感觉修改的不对,先执行 git reset HEAD filename
阅读全文
摘要:简单明了判断浏览器Firefox:typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;chrome typeof navigator !== 'undefined'
阅读全文
摘要:使用d3在SVG中画流程图,需要获取流程图的宽,高,来给流程图居中布局。在Chrome中 正常显示,可是在火狐中svg流程图在容器内偏移,查看很不方便。在网上百度了,找不到火狐对d3的兼容性,所以就自己在代码里log突然发现在获取svg的clientWidth和clientHeight时,结果都为0
阅读全文
摘要:1、安装pip和pygame都很简单。首先咱们来安装pip,官网https://pypi.python.org/pypi/pip#download,下载pip的压缩文件,并将其解压。 我们在cmd的python目录里直接敲下 pip install pygame 最后我们打开python,将pyga
阅读全文
摘要:var type = filename.match(/^(.*)(\.)(.{1,8})$/)[3].toUpperCase();
阅读全文