From cc7f57619fd09f68582b748a3580402717b84c50 Mon Sep 17 00:00:00 2001 From: david-PC\david <kimi42345@gmail.com> Date: 星期二, 12 六月 2018 15:27:15 +0800 Subject: [PATCH] 停止跟踪项目文件 --- source/my/frame/WebRoot/js/core.js | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/my/frame/WebRoot/js/core.js b/source/my/frame/WebRoot/js/core.js index 345ba99..e9f5f13 100644 --- a/source/my/frame/WebRoot/js/core.js +++ b/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; } -- Gitblit v1.8.0