ChenLiang 4 years ago
parent
commit
8c296349a4
1 changed files with 4 additions and 5 deletions
  1. 4 5
      插件/common.js

+ 4 - 5
插件/common.js

@@ -1,6 +1,6 @@
 var comm = {
     data: {
-        baseUrl: '',
+        baseUrl: ''
     },
 
     /* ====================================================================================== */
@@ -21,7 +21,7 @@ var comm = {
         this.done = 0;
         this.format = function () {
             var now = new String(new Date().getTime());
-            return now.substr(0, now.length - 5);
+            return now.substr(0, now.length - 3);
         }
         //格式化参数
         this.formatParams = function (data) {
@@ -195,7 +195,7 @@ var comm = {
 
     /* ====================================================================================== */
 
-    setCookie: function (name, value, time) { // 设置cookie
+    setCookie: function (name, value, t) { // 设置cookie
         var hour = t ? t : 8;
         var exp = new Date();
         exp.setTime(exp.getTime() + hour * 60 * 60 * 1000);
@@ -804,5 +804,4 @@ var comm = {
 
     window.MyPromise = MyPromise;
 
-})(window);
-
+})(window);