摘要:
Refactor the spacing between <header>, <article>, and <aside> so that elements will have a 20px margin above and below, regardless of their order on t 阅读全文
摘要:
Sometime, use can rewrite the toString , valueOf method to make those function more useful: For exmaple, we can make valueOf() function to calcualte t 阅读全文
摘要:
You can add prototype to any object in Jacascript likes Object, Array, String... prototype 有继承的作用,比如说我有一个String的对象,我可以访问Object的prototype hasPrototype( 阅读全文
摘要:
Convert the AppointmentForm view below to use Mustache templating. Make sure you remember to change the <%= %> placeholders with Mustache's {{}} place 阅读全文
摘要:
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 阅读全文