david-PC\david
2018-06-12 cc7f57619fd09f68582b748a3580402717b84c50
source/my/frame/WebRoot/js/core.js
@@ -12,7 +12,7 @@
              else if (typeof obj == "object") {
                 return this.decodeObject(obj);
              }
              else if (typeof obj == "string") {
              else if (typeof obj == "String") {
                 try {
                    return decodeURIComponent(obj);
               } catch (e) {
@@ -26,7 +26,7 @@
         
         decodeArray: function(data) {
            for (var i = 0; i < data.length; i++) {
               if (typeof data[i] == 'string') {
               if (typeof data[i] == 'String') {
                  data[i] = this.decode(data[i]);
               }
               else {
@@ -54,7 +54,7 @@
              else if (typeof obj == "object") {
                 return this.encodeObject(obj);
              } 
              else if (typeof obj == "string") {
              else if (typeof obj == "String") {
                 return encodeURI(obj);
                 } 
              else if (typeof obj == "boolean") {
@@ -106,7 +106,7 @@
               return null;
            }
            
            if (typeof object == "string") {
            if (typeof object == "String") {
               return encodeURI(object);
            }
            
@@ -132,14 +132,14 @@
             
             var pos = value.indexOf(",");
             if (pos > 0) {
                value = value.substring(pos + 1);
                value = value.subString(pos + 1);
             }
             
             return value;
          },
          
         S4 : function(){// 验证码
            return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
            return (((1 + Math.random()) * 0x10000) | 0).toString(16).subString(1);
         },
         guid : function(){
@@ -238,8 +238,8 @@
      getEl: function() {
         var element = this.element;
         
          if (typeof element == "string") {
             if ("#" != element.substring(0, 1)) {
          if (typeof element == "String") {
             if ("#" != element.subString(0, 1)) {
                element = "#" + element;
             }