As shown, data is the data returned from the background written by nodejs. If the data cannot be queried and an empty array is returned, the compilation will not be successful, indicating that data.menu is undefined. It is the first time to combine jade and nodejs. Please look at it with great gods’ help. Thank you very much.
dataIs it an array? See how you call it
data.menu.m1It’s not the way to write an operation array.
Also, if there is no data, return to the current page? The data section should show What?