我也讲讲Git
Git简介
Git,发音为:/ɡɪt/。Git是一个分布式版本控制软件,最初由林纳斯·托瓦兹(Linus Torvalds)创作,于2005年以GPL发布。
使用Git,不再依赖唯一的、集中式的版本库,而是每个开发者本地都拥有一份完整的版本库。 Git并不排斥集中式的使用模式,但更倾向于将集中式版本库称为共享版本库。
Dec 24 2015
Oct 22 2015
当我使用javascript创建一个图片对象:
1 2 3 |
var image = new Image(); image.src = "apple.jpg"; |
我以为可以这样获取图片的宽高值:
1 2 3 4 5 6 7 8 9 |
console.log("image", image); console.log("image.src", image.src); var height = image.height; console.log("image.height", height); console.log("image.naturalHeight", image.naturalHeight); var width = image.width; console.log("image.width", width); console.log("image.naturalWidth", image.naturalWidth); |
在某些电脑上的谷歌浏览器和IE11浏览器上,以上代码工作正常。但是火狐在第一次打开时却报出宽高值均为0
。如果按F5刷新页面,火狐又能正确获取宽高值了。按Ctrl+F5忽略缓存的话,仍能复现这个问题。
Oct 19 2015
While creating a image object:
1 2 3 |
var image = new Image(); image.src = "apple.jpg"; |
I thought I can get the height and width of the image like this:
1 2 3 4 5 6 7 8 9 |
console.log("image", image); console.log("image.src", image.src); var height = image.height; console.log("image.height", height); console.log("image.naturalHeight", image.naturalHeight); var width = image.width; console.log("image.width", width); console.log("image.naturalWidth", image.naturalWidth); |
In Chrome and IE11 on some computers, the code works as expected. But in Firefox, the height and width get 0
at the first time.If you refresh the page by pressing F5, It turns to be get the right value. Try testing it by pressing Ctrl+F5.
Oct 11 2015
Aug 17 2015
这个一直在维护的项目终于成型了。
排版依旧是很丑……没啥艺术细胞……
项目Need For Ping的最终项目,今后所有关于Need For Ping的项目均在此项目中更新。
本项目主要用于对网络稳定性的检测,可用于对不同提供商、不同区域的虚拟主机、VPS等网络稳定性的对比。
项目采用了thinkphp作为框架编写,并使用highcharts作为图表展示。服务器端需要php、mysql服务和linux环境,客户端则几乎对浏览器没有限制。
项目工作方式是定时ping远端主机,收集丢包率和延迟,并用图表展示。
近期评论