diff --git a/pages/SyntaxCase/instanceTest.uvue b/pages/SyntaxCase/instanceTest.uvue index 4c15b716fcacf1bb3dd419681334195d2455152c..2f78444b0eab63c1427b085174e2c2451d9adeff 100644 --- a/pages/SyntaxCase/instanceTest.uvue +++ b/pages/SyntaxCase/instanceTest.uvue @@ -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() diff --git a/pages/SyntaxCase/instanceTest.vue b/pages/SyntaxCase/instanceTest.vue index 4c15b716fcacf1bb3dd419681334195d2455152c..63f10a3d90deb152497cd4ebb4fe52da84d69d2d 100644 --- a/pages/SyntaxCase/instanceTest.vue +++ b/pages/SyntaxCase/instanceTest.vue @@ -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()