@
regmach @
lotem @
qiayue @
faceair @
jakwings @
mcfog @
zoowii @
markyangd @
est @
vicalloy @
oott123 @
mingxiaobai 顺便想到 mongodb 下这种方便做吧?
mongodb 不用设计数据库列字段,可以动态扩展 我觉得这一点 很灵活
比如 文章类别
articles category collection
[
{"key":"news","name":"新闻"},
{"key":"funny","name":"搞笑"},
{"key":"video","name":"视频"}
]
articles
[
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"},
{"category":“news”,"title":"这是一篇新闻","content":"内容xxxx"}
]
我觉得写个文章系统还是很好做的