mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 04:46:37 +00:00
文件夹结构调整,新增模版自定义功能
This commit is contained in:
14
templates/orange/static/wangEditor/example/server/util.js
Normal file
14
templates/orange/static/wangEditor/example/server/util.js
Normal file
@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
// 遍历对象
|
||||
objForEach: function (obj, fn) {
|
||||
let key, result
|
||||
for (key in obj) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
result = fn.call(obj, key, obj[key])
|
||||
if (result === false) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user