11 2015 档案
摘要:要想让代码出来得很有逻辑而简约。而这是要从设计开始的。非常符合盒子式的设计模式,一拿到就觉得特别专业和省力。首先来说下作为前端我拿到设计稿先看哪些部分:1.整个网站的底色,观察设计规律,主要找具有统一性的设计 比如按钮button的 宽、高、底色、所用文字、文字大小、文字颜色都是一样的,这样我...
阅读全文
摘要:[真实世界的脉络].(英)戴维.多伊奇.pdf宇宙、时间、生命、等等,如果用量子物理学、计算机科学、进化论、认识论将这些最基本而又复杂的问题纠缠在一起时,那将会是一幅什么样的图景呢?也许,我们穷尽一生也无法为这些问题求得真解。我们在这里只是提出一种理论模式、一种思维模式或哲学,甚至逻辑学意义上的思考...
阅读全文
摘要:扩展方法 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document 当前游览器不支持Canvas,请更换游览器再试! Canvas 绘图之旅 stop white bl...
阅读全文
摘要:椭圆 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:非零环绕原则 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:非零环绕原则 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try! source-over source-atop ...
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:fillStyle color gradient pattern image canvas videostrokeStyle
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:添加土地 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:添加月亮 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:createPattern 自己绘制背景图案 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:添加天空渐变 The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:#ffff#642 = #664422rgb(255,128,0)rgba(100,100,100,0.8)hsl(20,62%,28%)hsla(40,82%,33%,0.6)red
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:Document The current browser does not support Canvas, can replace the browser a try!
阅读全文
摘要:// 1.JavaScript 中的类型包括 Number(数字) String(字符串) Boolean(布尔) Symbol(符号)(第六版新增) Object(对象) Function(函数) Array(数组) Date...
阅读全文
摘要:// 1.基于原型链的继承// 继承属性 // 当访问一个对象的属性时发生的行为: // 假定有一个对象 o, 其自身的属性(own properties)有 a 和 b: {a: 1, b: 2} // o.[[Prototype]]有属性 b 和 c: {b...
阅读全文
摘要:// 1.变量(Variables) var myVariable; myVariable = 'Bob'; // 数据类型 string number boolean array object// 2.注释 /* Everything ...
阅读全文
摘要:var request = new XMLHttpRequest()if(window.XMLHttpRequest){ request = new XMLHttpRequest()}else{ request = new ActiveXObject("Microsoft.XMLHTTP...
阅读全文
摘要:var cyn = function(){ console.log("我是延时输出的函数")}setInterval(cyn,1000)
阅读全文
摘要:var cyn = function(){ console.log("我是延时输出的函数")}setTimeout(cyn,5000)
阅读全文
摘要:var scareMe = function(){ console.log("cynthia") scareMe = function(){ console.log("wuqian") }}scareMe() //cynthiascareMe() //wuqian//...
阅读全文
摘要://手机号验证var regMobile=/^1[3,5,8]\d{9}$/; //固定电话var regPhone=/^(^0\d{2}-?\d{8}$)|(^0\d{3}-?\d{7}$)|(^\(0\d{2}\)-?\d{8}$)|(^\(0\d{3}\)-?\d{7}$)$/; /* * 用...
阅读全文
摘要:var cyn = function(){ console.log("one") return function(){ console.log("two") }}var test = cyn() //不能直接执行cyn()test()
阅读全文
摘要:// 原型式继承// 其基本思路是借助原型可以基于已有的对象创建新的对象function object(o){ function F(){} F.prototype = o; return new F();}var person = { name: "Tom", friends: ["Jack...
阅读全文
摘要:// 原型链// 其基本思路是利用原型让一个引用类型继承另一个引用类型的属性和方法function Person(){ this.name = "Person";}Person.prototype.getName = function(){ return this.name;}funct...
阅读全文
摘要:// 1.任意参数的加法运算 function add(){ var sum = 0 for(var i=0;i<arguments.length;i++){ if(!isNaN(arguments[i])){ ...
阅读全文
摘要:// 借用构造函数// 其基本思路是在子类型构造函数的内部调用父类型的构造函数function Person(name){ this.name = name; this.friends = ["Jack","John","Kim"];}function SuperPerson(name,sex)...
阅读全文
摘要:// 寄生式继承// 其基本思路是类似创建对象时的工厂模式,将继承过程封装在一个函数里,然后返回一个对象function createObject(o){ var clone = Object.create(o); clone.sayHi = function(){ console.log(...
阅读全文
摘要:// 组合继承// 其基本思路是使用原型链实现对原型属性和方法的继承,而通过借用构造函数来实现对实例属性的继承function Person(name){ this.name = name; this.friends = ["Jack","John","Kim"];}Person.prototy...
阅读全文
摘要:// 寄生组合式继承// 其基本思路是通过借用构造函数来继承属性,通过原型链的混成形式来继承方法,就是为了不必为了子类型的原型去调用父类型的构造函数function inheritPrototype(superPerson,person){ var prototype=Object.create(...
阅读全文
摘要:( ) ( ( ) ) ( ( ( ) ) )########################## ############...
阅读全文
摘要:// 可视宽高var ch = document.documentElement.clientHeightvar cw = document.documentElement.clientWidth// 内容高度var sh = document.documentElement.scrollHeigh...
阅读全文
摘要:(function(){ var days = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] var today = new Date() var msg = "Today is" + days[today.getDay()] + ',' ...
阅读全文
摘要:function writeCode(callback){ console.log("i am waiting....") callback(); console.log("i am ready")}function prepare(){ console.log("i am preparing......
阅读全文
摘要:// “最后加” concat 连接两个或更多的数组,并返回结果。 var a = ['a','b','c']; var b = ['x','y','z']; var c = a.concat(b,true); // alert(c) //c变成 a,b,c,x,y,z//...
阅读全文
摘要:// 异步加载js(function(){ var _asyn_js_data = ['index.js','index1.js','index2.js','index3.js'] for(var i=0;i<_asyn_js_data.length;i++){ var s...
阅读全文
摘要: 举个例子 : 点击ul下面每个li的时候 背景成绿色
阅读全文
摘要:<meta name="wap-font-scale" content="no">
阅读全文