js 截取网址中的某一段字符串
var url = 'https://chengdu.qq.com/11/22/cc70d707a5/a259dac2-0a8b-47d2-a9af-7137a12ba09e%E6%9A%82%E6%97%A0%E6%9D%83%E9%99%90pn3301006_z11_abd4922_l0_tbdf34343437__&g_a=ggggggg' var myvlaue= url.split('//')[1]; //截取 "//" 到 ".com" 之间字段 var name = myvlaue.split('.com')[0]; // ".com" 后字段已截取已获取存在name console.log(name);