Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 396c8a2

Browse files
committed
修改封装栈结构的代码
1 parent b97ec21 commit 396c8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Stack/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const stack = new Stack();
99
stack.push(1);
1010
stack.push(2);
1111
stack.push(3);
12-
console.log(stack);
12+
console.log(stack.items);//--> [1, 2, 3]
1313

1414
// pop() 测试
1515
console.log(stack.pop()); //--> 3

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /