摘要: hello world 阅读全文
posted @ 2014-11-24 10:59 Joerias 阅读(346) 评论(0) 推荐(0) 编辑
摘要: function addLoadEvent(func){ var oldOnload = window.onload; if(typeof(window.onload) != 'function'){ window.onload = func; ... 阅读全文
posted @ 2014-11-24 10:58 Joerias 阅读(143) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener("touchstart", function(){}, true) //JS部分a:active{ background:red} //css部分 阅读全文
posted @ 2014-11-05 13:51 Joerias 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 打开终端cd /Applications/ //在应用程序文件目录删除苹果自带的程序sudo rm -rf Safari.app/ //删除safari浏览器sudo rm -rf Mail.app/ //删除mailsudo rm -rf FaceTime.app/ //删... 阅读全文
posted @ 2014-11-05 10:54 Joerias 阅读(615) 评论(0) 推荐(0) 编辑
摘要: window.onload = window.onresize = function initialLoad(){updateOrientation();}function updateOrientation(){ var contentType = ''; switch(window.... 阅读全文
posted @ 2014-11-05 10:40 Joerias 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 首先。通过github网站新建一个仓库,得到仓库地址https://github.com/piercalex/a.git接着回到客户端,打开git shell://在客户端配置账户信息git config --global user.name 'piercalex' //设置初始账号idgit co... 阅读全文
posted @ 2014-10-27 22:34 Joerias 阅读(589) 评论(0) 推荐(0) 编辑
摘要: svn: warning: W150002: '/Users/piercalex/svn/azzz/1' is already under version controlsvn: E200009: Could not add all targets because some targets are ... 阅读全文
posted @ 2014-10-23 14:20 Joerias 阅读(8149) 评论(0) 推荐(0) 编辑
摘要: jquery1.7+以后用.attr('checked')得到的,都是undefined。结论就是.attr()不能用于普通对象,数组,窗口,文档。要重新获取改变的dom属性,需要用.prop()方法。$(obj.prop('checked')){ //true}else{ //false} 阅读全文
posted @ 2014-05-13 13:45 Joerias 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 一、TureTpe(.ttf)格式:.ttf字体是Windows和Mac的最常见的字体,是一种RAW格式,因此他不为网站优化,支持这种字体的浏览器有【IE9+,Firefox3.5+,Chrome4+,Safari3+,Opera10+,iOS Mobile Safari4.2+】;二、OpenTy... 阅读全文
posted @ 2014-04-15 14:49 Joerias 阅读(171) 评论(0) 推荐(0) 编辑
摘要: document.body.clientWidth BODY对象宽度。通配符未清零margin的时候,小于页面可见区域宽度document.body.clientHeight BODY对象高度。document.documentElement.clientWidth 可见区域宽度document.d... 阅读全文
posted @ 2014-03-21 11:08 Joerias 阅读(661) 评论(0) 推荐(0) 编辑