摘要: Now the people at Poplar Puzzles would like you to treat an array of functions like a Queue, passing the result of each function into the next until t 阅读全文
posted @ 2014-08-02 20:29 Zhentiw 阅读(168) 评论(0) 推荐(0)
摘要: var parkRides = [["Birch Bumpers", 40], ["Pines Plunge", 55], ["Cedar Coaster", 20], ["Ferris Wheel of Firs". 90]]; var fastPassQueus = ["Cedar Coaste 阅读全文
posted @ 2014-08-02 19:50 Zhentiw 阅读(246) 评论(0) 推荐(0)
摘要: As an example, if Jason was riding the roller coaster (and when isn’t he), your goal would be to change his cell from ["Jason", "Millhouse"] to just " 阅读全文
posted @ 2014-08-02 18:00 Zhentiw 阅读(222) 评论(0) 推荐(0)
摘要: Inside the Haunted Hickory House file, developers for the Forest of Function Expressions Theme Park have created a declared function called forestFrig 阅读全文
posted @ 2014-08-02 17:23 Zhentiw 阅读(225) 评论(0) 推荐(0)
摘要: //This will load the code into the memory no matter //you call it or not function diffOfSquares(a,b){ return a*a -b*b; } //This code will only load in 阅读全文
posted @ 2014-08-02 16:37 Zhentiw 阅读(211) 评论(0) 推荐(0)
摘要: Dr. Goodparts is pretty flaky and has been cancelling a lot of appointments lately. He's asked for an easy, one-click way to cancel an appointment in 阅读全文
posted @ 2014-08-01 21:57 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: 如上图所示: Server有Data都交给Models处理, 然后由Models给Views Data,让View去告诉DOM如何显示, 然后DOM显示HTML; View events update Models? Models updates change the Views 当Model改变了 阅读全文
posted @ 2014-08-01 21:09 Zhentiw 阅读(159) 评论(0) 推荐(0)
摘要: Change the AppointmentView to have a top-level li tag (instead of the default div tag). var AppointmentView = Backbone.View.extend({tagName: 'li'}); M 阅读全文
posted @ 2014-08-01 20:45 Zhentiw 阅读(190) 评论(0) 推荐(0)
摘要: Our Appointment model doesn't seem too useful yet. Add two default attributes, title as the string "Checkup", anddate which should default to the curr 阅读全文
posted @ 2014-08-01 19:10 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: Welcome to the Anatomy of Backbone.js challenges! We're going to be building a simple Appointment app for our friend, Dr. Goodparts. So, let's get sta 阅读全文
posted @ 2014-08-01 17:52 Zhentiw 阅读(202) 评论(0) 推荐(0)