摘要: Instead of just writing out the quote to the response, instead render the quote.ejs template, passing in the quote name and quote body. Then finish th 阅读全文
posted @ 2014-07-31 16:33 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: Create a route that responds to a GET request '/quotes/<name>', then use the param from the URL to retrieve a quote from the quotes object and write i 阅读全文
posted @ 2014-07-31 16:25 Zhentiw 阅读(159) 评论(0) 推荐(0)
摘要: Create an express route that responds to GET requests at the URL /tweets that responds with the filetweets.html located in the same directory as app.j 阅读全文
posted @ 2014-07-31 15:30 Zhentiw 阅读(134) 评论(0) 推荐(0)
摘要: Update the versions on your dependencies to be a little more flexible, adding the ~ in front of your versions. package.json { "name": "My Awesome Node 阅读全文
posted @ 2014-07-30 20:29 Zhentiw 阅读(164) 评论(0) 推荐(0)
摘要: Add two dependencies to your package.json file, connect and underscore. You'll want to useconnect version 2.2.1 and underscore version 1.3.3. package. 阅读全文
posted @ 2014-07-30 20:25 Zhentiw 阅读(160) 评论(0) 推荐(0)
摘要: Content provider的作用:Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data s... 阅读全文
posted @ 2014-07-01 17:30 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: package com.example.thenewboston; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; 阅读全文
posted @ 2013-11-21 06:29 Zhentiw 阅读(216) 评论(0) 推荐(0)
摘要: package com.example.thenewboston; import android.app.Activity; import android.media.MediaPlayer; import android.media.SoundPool; import android.os.Bun 阅读全文
posted @ 2013-11-21 05:34 Zhentiw 阅读(139) 评论(0) 推荐(0)
摘要: An activity can exist in essentially three states: ResumedThe activity is in the foreground of the screen and has user focus. (This state is also some 阅读全文
posted @ 2013-11-21 03:55 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: 1. Create a new xml in "layout" folder "splah.xml" <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/ 阅读全文
posted @ 2013-11-20 05:54 Zhentiw 阅读(212) 评论(0) 推荐(0)