![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
刀刀怡情
这个作者很懒,什么都没留下…
展开
-
JS 字符串字符替换(replaceAll)
方法一:string.replace(/reallyDo/g, replaceWith);例:var time = "2015-01-22";var newTime = time.replace(replace(/\-/g, "" );//替换所有'-' 成 '' 结果 newTime : 20150122 ;方法二:string.replace(new RegEx原创 2015-01-22 08:33:05 · 358 阅读 · 0 评论 -
利用 ajax 像后台传递数组
只需要添加一句话,轻松搞定:traditional :true function batchRemove(){ var ids = new Array(); $(".collect-goods-box").each(function(){ var a = ($(this).find(".fl")); ids.push(a.attr("goodId"));原创 2016-08-15 10:03:54 · 362 阅读 · 0 评论