Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有发布时间的内容数据库!我在 C#(short Date String,long Date String,...) 中找到了一些日期时间格式
但我想在我的 asp.net 页面中显示我的时间跨度,喜欢 2 天前、3 天前、25 分钟前(就像脸书一样)
我会在返回枚举项或字符串的时间跨度上创建一个扩展方法
我不会为您编写代码,因为您实际上并没有给我们任何代码来查看/纠正。
以下 jQuery 插件正是为此目的而制作的:
使用像 CuteTime 这样的客户端解决方案将