摘要:
Our first step is to add a template to the AppointmentForm below. Have the template produce a form with two inputs, one for the title of the appointme 阅读全文
摘要:
Below we have our AppointmentsView instance rendering and then taking the rendered HTML and inserting into the$('#app') element. Change the code to in 阅读全文
摘要:
Duplication is Bad. Let's DRY (Don't Repeat Yourself) our routes to make /pp:per_page an optional part of the pageroute. var AppRouter = new (Backbone 阅读全文
摘要:
The good Dr. recently had another team implement the server and they slightly messed up the format of the JSON returned for Appointment data. Instead 阅读全文
摘要:
1. Ceate a route Class var AppRouter = Backbone.Router.extend({ }); 2. Add a route name it "show", listene to 'appointments/:id' var AppRouter = Backb 阅读全文
摘要:
First, memory is set aside for all necessary variables and declared functions. Function expression never got hosited in Javascirpt. Therefore, you can 阅读全文