看得见的功能,像这样的SO [英] Seen function, like here on SO
本文介绍了看得见的功能,像这样的SO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要和建议和示例,我如何可以构建一个功能,或者显示看到状态的其他东西,像这样在SO(在用户选项卡)。我知道应该是用户reg +日志系统,我已经做了这个,但我需要这个选项...来显示看到...
i need and advice and example, how i can build a function, or something else for displaying a "seen" status, like here on SO (in users tab).I know it should be with user reg + log system, and i have already did this, but i need exactly this option...to display seen ...
推荐答案
$ b $你好,我需要和建议和
的例子,我如何可以建立一个函数
或其他显示一个
看到的状态,像这样的SO(在
用户标签)
Hello guys, i need and advice and example, how i can build a function, or something else for displaying a "seen" status, like here on SO (in users tab)
退房:
- Pretty Date by John Resig
示例:
prettyDate("2008-01-28T20:24:17Z") // => "2 hours ago"
prettyDate("2008-01-27T22:24:17Z") // => "Yesterday"
prettyDate("2008-01-26T22:24:17Z") // => "2 days ago"
prettyDate("2008-01-14T22:24:17Z") // => "2 weeks ago"
这篇关于看得见的功能,像这样的SO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文