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

浙公网安备 33010602011771号