|
@@ -14,6 +14,10 @@ let stringUtil = {
|
|
|
}
|
|
|
return rst;
|
|
|
},
|
|
|
+ replaceAll: function (targetStr, FindText, RepText) {
|
|
|
+ let regExp = new RegExp(FindText, "gm");
|
|
|
+ return targetStr.replace(regExp, RepText);
|
|
|
+ },
|
|
|
convertStrToBoolean: function(str) {
|
|
|
let rst = false, me = this;
|
|
|
if (!me.isEmptyString(str)) {
|