The code is here (jsBin):http://jsbin.com/kisime/1/edit? js,console
How can I make the function m2 execute?
app.use(m1); app.use(m2); app.use(subApp); app();
Can’t we swap places? If it is executed first
subAppIf so, then
app.stackIf it is empty, an error will be thrown, the program will stop, and it will definitely not be executed.
m2Here we go.