base64 js 增加工具为空校验

This commit is contained in:
thinkgem
2019-11-19 09:24:35 +08:00
parent 68a304409c
commit 3e085c9ad1

View File

@@ -9,7 +9,7 @@
// public method for encoding
this.encode = function (input) {
var output = "";
var output = ""; if (!input || input==''){return output};
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = _utf8_encode(input);
@@ -35,7 +35,7 @@
// public method for decoding
this.decode = function (input) {
var output = "";
var output = ""; if (!input || input==''){return output};
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;