1
0
mirror of https://github.com/201206030/novel-plus.git synced 2025-07-11 03:36:40 +00:00

文件夹结构调整,新增模版自定义功能

This commit is contained in:
xiongxiaoyang
2020-12-26 19:13:07 +08:00
parent f03ab953d0
commit 6ad51908d5
601 changed files with 75656 additions and 8 deletions
README.md
doc
novel-front/src/main/resources
templates/orange
html
static
css
images
javascript
layui
mobile
IMG_1470.JPGbaidu_verify_ANtJi2eSPQ.htmlbaidu_verify_Ep8xaWQJAI.htmlbaidu_verify_L6sR9GjEtg.htmlbook_content.htmlbook_detail.htmlbook_index.htmlbook_search.htmlfavicon.icofiction_house.apk
html
index.html
js
layui
mang.htmlmang.pngshenma-site-verification.txtshenma-site-verification2.txt
static
wangEditor
.eslintignore.eslintrc.json.gitattributes.gitignore.npmignoreISSUE.mdLICENSEREADME.mdbower.json
docs
example
gulpfile.jspackage.json
release
src

@ -0,0 +1,16 @@
//格式化时间函数
Date.prototype.Format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
};