上一页 1 ··· 484 485 486 487 488 489 490 491 492 ··· 494 下一页
摘要: You can add prototype to any object in Jacascript likes Object, Array, String... prototype 有继承的作用,比如说我有一个String的对象,我可以访问Object的prototype hasPrototype( 阅读全文
posted @ 2014-08-10 02:32 Zhentiw 阅读(187) 评论(0) 推荐(0)
摘要: Convert the AppointmentForm view below to use Mustache templating. Make sure you remember to change the <%= %> placeholders with Mustache's {{}} place 阅读全文
posted @ 2014-08-09 17:52 Zhentiw 阅读(189) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2014-08-09 03:25 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: Below we have our AppointmentsView instance rendering and then taking the rendered HTML and inserting into the$('#app') element. Change the code to in 阅读全文
posted @ 2014-08-08 22:35 Zhentiw 阅读(177) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2014-08-08 21:08 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: 如果在一个容器中的子元素使用了position:absolute, 那么他可能会跑出父元素的框架范围。 如果想限定子元素在付元素的框架范围,可以在父元素上加position:relative; 对于一个父元素,比如bigWrapper, mainHeader, mainFooter 可以加上posi 阅读全文
posted @ 2014-08-08 15:25 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="index.css" /> </head> <div class="db group"> <!-- 在含有float的容器中家group class--> <div id="l" s 阅读全文
posted @ 2014-08-08 03:34 Zhentiw 阅读(287) 评论(0) 推荐(0)
摘要: var vehicle1 = {type: "Motorboat", capacity: 6, storedAt: "Ammunition Depot"}; var vehicle2 = {type: "Jet Ski", capacity: 1, storedAt: "Reef Dock"}; v 阅读全文
posted @ 2014-08-08 00:31 Zhentiw 阅读(241) 评论(0) 推荐(0)
摘要: // Get /appointments{ "per_page": 10, "page": 1, "total": 50, "appointments": [ { "title": "Ms. Kitty Hairball Treatment", "cankelled": false, "identi 阅读全文
posted @ 2014-08-07 18:56 Zhentiw 阅读(264) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2014-08-07 16:38 Zhentiw 阅读(200) 评论(0) 推荐(0)
上一页 1 ··· 484 485 486 487 488 489 490 491 492 ··· 494 下一页