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 @@ 中国天气