(oldStr, addItem, afterWhich)
| 698 | } |
| 699 | }, |
| 700 | addStr(oldStr, addItem, afterWhich) { |
| 701 | // 在指定字符串后面添加指定字符串 |
| 702 | const strArr = oldStr.split(''); |
| 703 | strArr.splice(oldStr.indexOf(afterWhich) + afterWhich.length, 0, addItem); |
| 704 | return strArr.join(''); |
| 705 | }, |
| 706 | replaceStr(str, replaceStr, newStr) { |
| 707 | return str.replace(replaceStr, newStr) |
| 708 | }, |
nothing calls this directly
no outgoing calls
no test coverage detected