replace
kadxls
这个作者很懒,什么都没留下…
展开
-
replace 所有html标签
replace(/]*>/g, "") // /g为替换所有原创 2016-06-29 14:34:00 · 1485 阅读 · 0 评论 -
Js替换字符串中特殊符号包裹的变量
我写的是邮件发送模版,替换 [#**#]变量// Replace email variablefunction replaceItem(obj, word) { // Split word with [# return word.split("[#").map((item, index) => { // Get split word string, split #]...原创 2019-05-17 13:36:18 · 1099 阅读 · 0 评论