标签:function his ace prot class turn eal var news
1 //JQuery替换全部字符
<script> 2 String.prototype.replaceAll = function (targetStr, newStr) { 3 var sourceStr = this.valueOf(); 4 while (sourceStr.indexOf(targetStr) !== -1) { 5 sourceStr = sourceStr.replace(targetStr, newStr); 6 } 7 return sourceStr; 8 }; 9 </script>
标签:function his ace prot class turn eal var news
原文地址:https://www.cnblogs.com/xiaoyongjun/p/10184040.html