Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@huwenshuo
huwenshuo / Model.js
Created November 3, 2012 12:58
javascript Model
if(typeof Object.create!=="function"){
Object.create = function (o) {
function F(){}
F.prototype = o;
return new F();
}
}
var extend = function (obj) {
var sources = [].slice.call(arguments, 1)