This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"common": { | |
"mail": { | |
"title": "Ghost 在 {domain}" | |
}, | |
"seeLinkForInstructions": "有关说明,请参阅 {link}。", | |
"time": { | |
"seconds": "秒" | |
}, | |
"api": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function debounce (fn, delay) { | |
var timer = -1; | |
return function () { | |
var that = this; | |
var args = arguments; | |
window.clearTimeout(timer); | |
timer = window.setTimeout(function () { | |
fn.apply(that, args); | |
}, delay || 300); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clearAllInterval () { | |
let id = setInterval(function () {}, 9999); | |
while (id > 0) { clearInterval(id--); } | |
} |
OlderNewer