Skip to content

Instantly share code, notes, and snippets.

@huwenshuo
huwenshuo / Model.js
Created Nov 3, 2012
javascript Model
View Model.js
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)