MCPcopy
hub / github.com/wangzheng0822/algo / pushNormal

Method pushNormal

javascript/08_stack/SampleBrowser.js:14–18  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

12 }
13 // 正常浏览页面
14 pushNormal(name) {
15 this.normalStack.push(name)
16 this.backStack.clear()
17 this.displayAllStack()
18 }
19 // 后退
20 back() {
21 const value = this.normalStack.pop()

Callers 1

SampleBrowser.jsFile · 0.80

Calls 3

displayAllStackMethod · 0.95
pushMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected