03 2016 档案

摘要://第1种写法 function Circle(r) { this.r = r; } Circle.PI = 3.14159; Circle.prototype.area = function() { return Circle.PI * this.r * this.r; } var c = new Circle(1.0); alert(c.area()); //第... 阅读全文
posted @ 2016-03-23 12:55 sunbey80 阅读(243) 评论(0) 推荐(0)
摘要:canvas 阅读全文
posted @ 2016-03-15 22:40 sunbey80 阅读(463) 评论(0) 推荐(0)
摘要:  阅读全文
posted @ 2016-03-15 17:13 sunbey80 阅读(728) 评论(0) 推荐(0)
摘要:1 关键字breakcasecatchcontinuedefaultdeletedoelsefinallyforfunctionifininstanceofnewreturnswitchthisthrowtrytypeofvarvoidwhilewith 2 保留字abstractbooleanby 阅读全文
posted @ 2016-03-10 15:37 sunbey80 阅读(169) 评论(0) 推荐(0)
摘要:// JavaScript Document Sunbye 1.0 //getElementById //function start var $=function(_id){return document.getElementById(_id)}; //function end //functio 阅读全文
posted @ 2016-03-10 12:47 sunbey80 阅读(328) 评论(0) 推荐(0)
摘要:a,button,input,textarea,label,i,em{/*highlight*/ -webkit-tap-highlight-color: rgba(255,0,0,0); border: 0; -webkit-appearance: none; } 阅读全文
posted @ 2016-03-10 12:00 sunbey80 阅读(255) 评论(0) 推荐(0)
摘要:推荐使用JSON.parse() 低版本浏览器(IE6/7)不支持此方法,可以通过网上下载json2.js,引入到文件中,此文件通过判断浏览器是否支持JSON.parse()方法,如果不支持,文件中编写了JSON.parse()方法,同样可调用。 阅读全文
posted @ 2016-03-09 21:49 sunbey80 阅读(274) 评论(0) 推荐(0)
摘要:设置本地账号 生成秘钥 忽略文件 q:出现无法提交代码 a:解决方案: q:合并后[git merge origin/master]怎么撤销 a:解决方案: q:撤出暂存区 a:解决方案: q:还原文件 阅读全文
posted @ 2016-03-08 16:22 sunbey80 阅读(207) 评论(0) 推荐(0)
摘要:1.placeholder默认样式修改 知识点:单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素。 css伪类:CSS 伪类用于向某些选择器添加特殊的效果。 css伪元素:CSS 伪元素用于向某些选择器设置特殊效果。 伪元素由双冒号和伪元素名称组成。双冒号是在当前规范中引入的,用于区分 阅读全文
posted @ 2016-03-08 12:58 sunbey80 阅读(980) 评论(0) 推荐(0)
摘要:@media (device-height:480px) and (-webkit-min-device-pixel-ratio:2) {/* 兼容iphone4/4s */} @media (device-height:568px) and (-webkit-min-device-pixel-ra 阅读全文
posted @ 2016-03-07 17:07 sunbey80 阅读(425) 评论(0) 推荐(0)
摘要:function fnOpenBox(objId,animateD,speed,tween,hide){ var oOpenBox = $(objId); oOpenBox.show(); oOpenBox.animate(animateD,speed,tween,function(){ if(hi 阅读全文
posted @ 2016-03-02 10:20 sunbey80 阅读(251) 评论(0) 推荐(0)
摘要:var obj = document.getElementById('pDiv'); obj.addEventListener('touchmove', function(event) { // if finger one touched if (event.targetTouches.length 阅读全文
posted @ 2016-03-01 15:10 sunbey80 阅读(357) 评论(0) 推荐(0)