有空,一直在研究别人的网站。有些技术看不懂,请前辈们指教。
比如这一个网站:http://paper.li/museummannequin/1307365066
chrome源码查看 view-source:http://paper.li/museummannequin/1307365066从485行开始。再贴一段样品代码:{"tld":"vogue.com","title":"Artist of the Week: Lucy Rose - Culture","img":"http://media.vogue.com/files/filecheck/2011/11/29/img-lucy-rose_150702882392.jpg_article_singleimage.jpg","url":"http://www.vogue.com/culture/article/artist-of-the-week-lucy-rose/","id":8320633769,"favicon_url":"http://www.vogue.com/favicon.ico","article_id":1458760551,"content":"Photo: Pip Medres\nLucy Rose\u2014the hard-not-to-fall-in-love-with nu-folk trobairitz, touted as one of indie music\u2019s breakout stars for 2012\u2014was eighteen and had just left school when she packed up her...","source":{"avatar_url":"http://a2.twimg.com/profile_images/1638662310/deccover-twitter_normal.jpg","timestamp":"2011-11-30T14:49:45Z","username":"voguemagazine","content":"Artist of the Week: Listen to @lucyrosemusic's \"Night Bus\" now on http://t.co/vow48ulo. http://t.co/KM703OVD","profile_url":"http://twitter.com/voguemagazine","status_id":"141891673587331072","provider":"twitter"}这个网站的正文部分,是用JS解析JSON数据,最后解析成HTML格式。我想请教一下:
1. 用json方式保存数据入库,有什么优点吗?
2. 这个网站是用的哪一类数据库,是传统的MYSQL吗?
3. 这样的数据保存方式,如何进行数据的检索?题外加一个非数据库疑问:
那个广告的加载代码在哪里? google现在不是不允许ajax和iframe广告了?