摘要: 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 阅读(181) 评论(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 阅读(170) 评论(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 阅读(183) 评论(0) 推荐(0)
摘要: Let's go back to our live-moderation app and add some persistence, first to the questions people ask. Use the lpush command to add new questions to th 阅读全文
posted @ 2014-08-01 01:59 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要: As we saw in the video, redis can do more than just simple key-value pairs. We are going to be using redis lists later to add persistance to our live- 阅读全文
posted @ 2014-07-31 23:52 Zhentiw 阅读(131) 评论(0) 推荐(0)
摘要: Let's start practicing using the redis key-value store from our node application. First require the redismodule, and then create a redis client that w 阅读全文
posted @ 2014-07-31 23:45 Zhentiw 阅读(143) 评论(0) 推荐(0)
摘要: Clients can also answer each other questions, so let's build that feature by first listening for the'answer' event on the client, which will send us b 阅读全文
posted @ 2014-07-31 18:03 Zhentiw 阅读(161) 评论(0) 推荐(0)
摘要: Below we've already created an express server, but we want to start building a real-time Q&A moderation service and we've decided to use socket.io. Re 阅读全文
posted @ 2014-07-31 17:47 Zhentiw 阅读(235) 评论(0) 推荐(0)
摘要: Now let's create an express server which queries out for this search term and just returns the json. You'll need to do a few things: Require the expre 阅读全文
posted @ 2014-07-31 17:09 Zhentiw 阅读(151) 评论(0) 推荐(0)
摘要: Let's create a page which calls the twitter search API and displays the last few results for Code School. The first step is to construct the proper UR 阅读全文
posted @ 2014-07-31 16:45 Zhentiw 阅读(186) 评论(0) 推荐(0)