From e725ccbd182fd383b5e94002cdec2f3cd5fb04af Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 27 Apr 2022 18:00:49 +0800 Subject: [PATCH] update --- src/components/checkPhoto/index.vue | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/components/checkPhoto/index.vue b/src/components/checkPhoto/index.vue index 691b5ab..14fb8cf 100644 --- a/src/components/checkPhoto/index.vue +++ b/src/components/checkPhoto/index.vue @@ -232,7 +232,6 @@ export default { }, created() { // 获取现在的时间 - this.nowDate = (() => { const date = new Date() var y = date.getFullYear(); @@ -246,23 +245,6 @@ export default { methods: { closeIt() { this.$emit('update:showImg', false) - }, - test() { - console.log('jinitaimei!') - }, - debounce(fn,delay) { - let time= null; // 私有化数据 - return function (){ - let context = this,args = arguments; - if(time) { // 下一次点击的时候获取到上一下的time,也就是保持数据。 - clearTimeout(time) - // 思考题 这里要不要清空time - // time = null; - } - time = setTimeout(function (){ - fn.apply(context,args); - },delay) - } } },