更新
This commit is contained in:
@@ -32,6 +32,7 @@ export function parseTime(time) {
|
||||
return formatRes;
|
||||
}
|
||||
|
||||
// 防抖
|
||||
export function debounce(fn, delay) {
|
||||
let timer = null;
|
||||
return function () {
|
||||
@@ -39,7 +40,6 @@ export function debounce(fn, delay) {
|
||||
let _this = this;
|
||||
let _arguments = arguments;
|
||||
timer = setTimeout(function () {
|
||||
// 在执行时,通过apply来使用_this和_arguments
|
||||
fn.apply(_this, _arguments);
|
||||
}, delay);
|
||||
};
|
||||
@@ -55,8 +55,8 @@ export function isLicensePlate(no) {
|
||||
export function cellStyle() {
|
||||
return "text-align:center";
|
||||
}
|
||||
|
||||
// 类型判断
|
||||
export function typeJudgment(object) {
|
||||
let res = {}.__proto__.toString.call(object);
|
||||
return res ? res : "";
|
||||
return res || "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user