jQuery日期插件 Prettydate
本文导语: Prettydate 是一个 jQuery 用来显示一些用户友好的日期格式的插件,例如 Posted 2 days ago by John Resig 示例代码: $.prettyDate.messages = { now: "gerade eben", minute: "vor einer Minute", minutes: $.prettyDate.template("vor {0} Minuten"), hour: "vo...
Prettydate 是一个 jQuery 用来显示一些用户友好的日期格式的插件,例如 Posted 2 days ago by John Resig
示例代码:
$.prettyDate.messages = {
now: "gerade eben",
minute: "vor einer Minute",
minutes: $.prettyDate.template("vor {0} Minuten"),
hour: "vor einer Stunde",
hours: $.prettyDate.template("vor {0} Stunden"),
yesterday: "Gestern",
days: $.prettyDate.template("vor {0} Tagen"),
weeks: $.prettyDate.template("vor {0} Wochen")
}
在线演示:http://jquery.bassistance.de/prettydate/demo/