摘要: error:RPC failed;result=56,HTTP code = 0 这个错误就是因为本地项目过大超出了它的默认值造成的,通过如下命令可解决: git config http.postBuffer 524288000 前期我出现上传不上的情况用这个很好地解决了,可是过了几天我又遇到了一个 阅读全文
posted @ 2016-02-25 11:32 agosto 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 在使用git来push到github服务器的时候,每次都需要填写用户名/邮箱、密码,是一件非常麻烦的事,但现在不用担心啦,可使用如下方法解决。 添加环境变量。 在用户文件夹如C:\Users\XXX下新建一个名为_netrc的文件。 编辑该文件: machine github.com login X 阅读全文
posted @ 2016-02-25 11:16 agosto 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1 function clone(obj) 2 { 3 if(typeof obj!='object'){ 4 return obj; 5 } 6 7 if(obj instanceof Array){ 8 var arr=[]; 9 for(var i=0; i<obj.length; i++){ 阅读全文
posted @ 2016-02-10 22:58 agosto 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 1 //通过类名获取元素 2 function getByClass(oParent,sClass){ 3 //高版本浏览器使用系统自带方法 4 if(oParent.getElementsByClassName){ 5 return oParent.getElementsByClassName(s 阅读全文
posted @ 2016-02-10 22:31 agosto 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1 function getByClass(obj,sClass){ 2 if(obj.getElementsByClassName){ 3 return obj.getElementsByClassName(sClass); 4 }else{ 5 var arr=[]; 6 //var reg=/ 阅读全文
posted @ 2016-02-01 12:42 agosto 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 select.css 2 3 *{padding:0;margin:0;} 4 .box{position: relative;width: 100px;} 5 ul,li{list-style: none;background: #eee;} 6 .box span{display:blo... 阅读全文
posted @ 2015-12-18 20:08 agosto 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 checkbox.css 2 3 *{padding: 0;margin:0;} 4 span{background: url(images/no.gif) no-repeat;padding-left: 20px;} 5 .active{background: url(images/yes... 阅读全文
posted @ 2015-12-18 20:04 agosto 阅读(268) 评论(0) 推荐(0) 编辑
摘要: function getStyle(obj,name){ return (obj.currentStyle || getComputedStyle(obj,false))[name]; } function move(obj,json,options){ options=options || {}; 阅读全文
posted @ 2015-12-18 19:59 agosto 阅读(150) 评论(0) 推荐(0) 编辑
摘要: myRadio .css*{padding: 0;margin:0;}span{background: url(images/no.gif) no-repeat;padding-left: 20px;}.active{background: url(images/yes.gif) no-repeat... 阅读全文
posted @ 2015-12-18 19:58 agosto 阅读(175) 评论(0) 推荐(0) 编辑
摘要: JS操作属性 阅读全文
posted @ 2015-12-07 23:36 agosto 阅读(143) 评论(0) 推荐(0) 编辑