+
95
-

回答

使用|moment-with-locales多国语言版

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BFW NEW PAGE</title>
<script id="bfwone" data="dep=jquery.17|moment-with-locales&err=0" type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
<script type="text/javascript">
bready(function() {


$("#timestr").append(moment().locale("zh-cn").format('MMMM Do YYYY, h:mm:ss a'));
$("#timestr").append(moment().locale("zh-cn").format('dddd'));
$("#timestr").append(moment().locale("zh-cn").format("MMM Do YY"));
$("#timestr").append(moment().locale("zh-cn").format('YYYY [escaped] YYYY'));
$("#timestr").append(moment().locale("zh-cn").format());

});
</script>
<style>
</style>
</head>
<body>
<div id="timestr">

</div>
</body>
</html>


网友回复

我知道答案,我要回答