参考以下BLOG有个大概框架:
http://blog.sina.com.cn/s/blog_69b5d2a50101en41.html
http://blog.csdn.net/zyhui65/article/details/8524144
http://blog.csdn.net/leo_wonty/article/details/6721214
http://blog.sina.com.cn/s/blog_640029b30100vraz.html
http://blog.chinaunix.net/uid-25314474-id-3040231.html
http://www.elecfans.com/lab/code/20120202258981_2.html