js截取某个字符串中某个词后面的内容

if (requestUrl.indexOf('type') !== -1) {

requestUrl1 = requestUrl.substr(requestUrl.lastIndexOf('type') + type.length)

}

猜你喜欢

转载自blog.csdn.net/weixin_43173924/article/details/89632800