From e181b13fa14c41fa1923a4c53c1133d73e05d6e5 Mon Sep 17 00:00:00 2001 From: star <2321582517@qq.com> Date: Sat, 28 Apr 2018 11:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20rate=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lay/modules/rate.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lay/modules/rate.js b/src/lay/modules/rate.js index 66616ee..0034587 100644 --- a/src/lay/modules/rate.js +++ b/src/lay/modules/rate.js @@ -7,15 +7,15 @@ */ layui.define('jquery',function(exports){ - "use strict"; - var $ = layui.jquery + "use strict"; + var $ = layui.jquery - //外部接口 - ,rate = { - config: {} - ,index: layui.rate ? (layui.rate.index + 10000) : 0 + //外部接口 + ,rate = { + config: {} + ,index: layui.rate ? (layui.rate.index + 10000) : 0 - //设置全局项 + //设置全局项 ,set: function(options){ var that = this; that.config = $.extend({}, that.config, options); @@ -26,7 +26,7 @@ layui.define('jquery',function(exports){ ,on: function(events, callback){ return layui.onevent.call(this, MOD_NAME, events, callback); } - } + } //操作当前实例 ,thisRate = function(){ @@ -46,7 +46,7 @@ layui.define('jquery',function(exports){ ,ICON_SOLID_HALF = 'layui-icon-rate-solid layui-icon-rate-half', ICON_SOLID_RATE = 'layui-icon-rate-solid layui-icon-rate', ICON_HALF_RATE = 'layui-icon-rate layui-icon-rate-half' - //构造器 + //构造器 ,Class = function(options){ var that = this; that.index = ++rate.index; @@ -209,6 +209,6 @@ layui.define('jquery',function(exports){ var inst = new Class(options); return thisRate.call(inst); }; - - exports(MOD_NAME, rate); + + exports(MOD_NAME, rate); }) \ No newline at end of file