jQuery Time ago from a timestamp?

前端 未结 4 836
夕颜
夕颜 2021-02-06 08:31

Below is a really nice time ago plugin for jQuery, very similar to what they use here on SO. The problem for me is that it uses this to convert time.

4条回答
  •  余生分开走
    2021-02-06 08:56

    It would be better using both, but it is not necessary to make it dynamic with JS.

    In fact, I've only seen this behaviour in Facebook.

    Also, are you well aware that the tag is HTML5? It may create a few uncompatibilities.

提交回复
热议问题