js替换数组中所有需要替换的字段

783 ℃
var arr=[
    {
      "ps": "\u672c\u673a", 
      "sid": 27
    }, 
    {
      "ps": "other_http://192.168.0.9_33333", 
      "sid": 30
    }, 
    {
      "ps": "\u5916\u7f51\u4e91\u63a7", 
      "sid": 32
    }, 
    {
      "ps": "other_http://212.64.25.103:8888_212.64.25.103", 
      "sid": 33
    }, 
    {
      "ps": "com_http://212.64.25.103:8888_212.64.25.103", 
      "sid": 49
    }, 
    {
      "ps": "other_http://192.168.1.248:8888_192.168.1.248", 
      "sid": 54
    }
]
console.log(JSON.parse(JSON.stringify(arr).replace(/(other_http|pub_http|com_http|sec_http)[^_]*_/gi,'')))

什么是CDR,CDR和PS区别是什么

ps如何缩放图像大小,缩放图像的操作方法?

photoshop如何画边框(教程介绍)

如何利用js实现换行

var、let、const的区别(什么时候调用)

标签: js换行, ps技巧, sid, var, 替换

上面是“js替换数组中所有需要替换的字段”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_37.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

javascript语法对当前链接URL对象处理
vuejs一行代码判断当前设备是移动端还是pc端
vue语法中双击事件和单击事件出现冲突怎么解决
javascript利用replace()批量替换url链接中的多个子字符串
如何分辨出竞争对手是用白帽优化还是黑帽优化