PST:太平洋标准时间(-8:00),注意温哥华采用的是这个时间
PDT:太平洋夏令时,注意温哥华过些日子变成夏令时
ET: 美国东部时间, EST 或者 EDT: 前者为标准时间(-5:00), 后者为日光(节约)时间(-4:00). 现在是EST有效.
AST:大西洋标准时间(-4:00,加拿大部分地区采用这个)
CCT:中国沿海时间/北京时间(+8:00)
JST:日本标准时间(+9:00)
PST:太平洋标准时间(-8:00),注意温哥华采用的是这个时间
PDT:太平洋夏令时,注意温哥华过些日子变成夏令时
ET: 美国东部时间, EST 或者 EDT: 前者为标准时间(-5:00), 后者为日光(节约)时间(-4:00). 现在是EST有效.
AST:大西洋标准时间(-4:00,加拿大部分地区采用这个)
CCT:中国沿海时间/北京时间(+8:00)
JST:日本标准时间(+9:00)
var Person = function(){this.bar = 'bar'};
Person.prototype.foo = 'foo'; // Person.prototype = { foo : 'foo', ... }
var Chef = function(){this.goo = 'goo'};
Chef.prototype = new Person(); // Chef.prototype = { bar : 'bar', ... }
var cody = new Chef();
console.log(cody.goo); // logs 'goo': own prop
console.log(cody.bar); // logs 'bar': found bar from Chef's prototype
console.log(cody.foo); // logs 'foo': found foo from Chef's prototype's prototype
var Foo = function Foo(){};
Foo.prototype.x = 1;
var FooInstance = new Foo();
console.log(FooInstance.x); // logs 1, as you think it would
//now let’s replace/override the prototype object with a new Object() object
Foo.prototype = {x:2};
console.log(FooInstance.x); // logs 1: once created, object's __proto__ never changes
// create a new instance of Foo()
var NewFooInstance = new Foo();
console.log(NewFooInstance.x); // logs 2
function Foo(){};
var aFoo = new Foo();
//constructor__is__prop_of_prototype
//aFoo.hasOwnProperty("constructor") is false, aFoo.constructor is actually Foo.prototype.constructor
alert( Foo.prototype.constructor === aFoo.constructor ) // alert "true"
var add = function() {
/*
even though we forgo specifying parameters when defining the function, we
can rely on the arguments array passed to the function to access parameters
*/
return arguments[0] + arguments[1];
};
console.log(add(4, 4)); // returns 8
温哥华买房,有几点对买家不利: