工厂模式 function createPerson(name, age) { let o = new Object(); o.name = name o.age = age o.say = function() { console.log("name", this.name, "age", thi Read More
posted @ 2019-12-25 00:19 护花使者 Views(170) Comments(0) Diggs(0) Edit