Using AJAX with express (changing variables after request)
问题 I want to make a single page app. simplification of what I want: First on "/" will be a home page with a display section with 2 buttons. when they click on button 1 we will retrieve data from server and display it on the page in the display section and do the same thing for button 2 but for different data. I'm having a hard time grasping on how to put in the right display section. I know you could do conditions in Jade like: html head script(src ="http://code.jquery.com/jquery-2.1.1.js")