2021年9月22日

js 获取地址第1或2个斜杠后的内容或地址前一部分

摘要: var value = "https://www.baidu.com/20210922/95b22ab5034b2d0f.jpg";const str = value.split("https://"); //https://进行分割, const index = str[1].indexOf("/ 阅读全文

posted @ 2021-09-22 14:28 多言 阅读(3378) 评论(0) 推荐(0) 编辑

导航