2015/6/6 12:22:13翻牌: 3395临幸: 5 /* basic styles for black background and crosshair cursor */
canvas {
cursor: crosshair;
display: block;
background-color: #000;
}Canvas is not supported in your browser.// when animating on canvas, it is best to use requestAnimationFrame instead of setTimeout or setInterval
// not suppo...
2015/1/12 4:58:53翻牌: 3026临幸: 0 先上一段代码,在解释其中道理//基类
var Person = function (name, age) {
//可继承的的,公有的属性
Person.prototype.name = name;
Person.prototype.age = age;
this.className = "Person";
//看一看这是什么
console.log(Person.__proto__);
}
//静态方法,类名就可调用
Person.prefix = function () {
return "hi ";
}
//...