From 3b859530e53450b6d8633c173b073383bafa0e44 Mon Sep 17 00:00:00 2001 From: zhizou Date: Fri, 26 Jul 2019 10:14:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E6=AD=A5=E8=BF=9B=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/layui/lay/okmodules/countUp.js | 11 +++++------ weather.html | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/layui/lay/okmodules/countUp.js b/lib/layui/lay/okmodules/countUp.js index 16c0bce..42c0cb6 100644 --- a/lib/layui/lay/okmodules/countUp.js +++ b/lib/layui/lay/okmodules/countUp.js @@ -38,7 +38,6 @@ layui.define(['jquery'], function (exports) { argums.startVal = argums.startVal || 0; argums.target = $(argums.target)[0]; argums.endVal = argums.endVal || $($(argums.target)[0]).text(); - /*var { target, startVal, @@ -48,11 +47,11 @@ layui.define(['jquery'], function (exports) { options } = argums;// 这里是ES6语法*/ var target = argums.target, - startVal = target.startVal, - endVal = target.endVal, - decimals = target.decimals, - duration = target.duration, - options = target.options; + startVal = argums.startVal, + endVal = argums.endVal, + decimals = argums.decimals, + duration = argums.duration, + options = argums.options; var self = this; self.version = function () { return "1.9.2" diff --git a/weather.html b/weather.html index 4065da7..d521727 100644 --- a/weather.html +++ b/weather.html @@ -4,10 +4,10 @@ 中国天气