代码 function Shoppingmall (name, floor, store) { this.name = name; this.floor = floor; this.store = store; this.totalstore = function () { console.log(`${this.name} has ${this.store} stores on its ${this.floor} floors`); } } let myShoppingmall = new Shoppingmall("Premium Mall", "5", "1000"); myShoppingmall.totalstore(); // Output: Premium Mall has 1000 stores on its 5 floors.