提交 bd9a846a 编写于 作者: 杜庆泉's avatar 杜庆泉

多实例创建 测试代码调整

上级 f12ab23a
......@@ -22,12 +22,11 @@
instanceCreate() {
const user1 = new User("张三", 20);
let userText1 = user1.describeSelf()
const user2 = new User("李四", 30);
let userText2 = user2.describeSelf()
const user3 = new User("王五", 40);
let userText1 = user1.describeSelf()
let userText2 = user2.describeSelf()
let userText3 = user3.describeSelf()
......
......@@ -22,12 +22,11 @@
instanceCreate() {
const user1 = new User("张三", 20);
let userText1 = user1.describeSelf()
const user2 = new User("李四", 30);
let userText2 = user2.describeSelf()
const user3 = new User("王五", 40);
let userText1 = user1.describeSelf()
let userText2 = user2.describeSelf()
let userText3 = user3.describeSelf()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册