摘要:
window.onload=function(){ new Preson('liujian','男').show(); new Work('liujian','男','工人').show(); new Work('liujian','男','工人').ShowWork(); } function Preson(name,sex){ this.name=... 阅读全文
摘要:
//1.工厂模式 function person(name, age, job) { var o = new Object(); o.name = name; o.age = age; o.job = job; o.sayName = function () { alert(this.name) } 阅读全文
摘要:
$.extend(true,default,opts||{}); 阅读全文