function
replaceQueryString
(
url
,
name
,
value
)
{
const
re
=
new
RegExp
(
name
+
'=[^&]*'
,
'gi'
)
return
url
.
replace
(
re
,
name
+
'='
+
value
)
/** * 替换url的指定参数 * @param {*} url 需要替换的url * @param {*} name 参数名称 * @param {*} value 替换的值 */ function replaceQueryString (url, name, value) { const re = new RegExp(name + '=[^&]*', 'gi') return url.replace(re, name + '=' + value)}...
vscode提示‘Vetur find `tsconfig.json`/`jsconfig.json`, but they aren‘t in the project root.’
46910
vscode提示‘Vetur find `tsconfig.json`/`jsconfig.json`, but they aren‘t in the project root.’
js替换url指定参数的值
路小雨的雨web:
vscode提示‘Vetur find `tsconfig.json`/`jsconfig.json`, but they aren‘t in the project root.’
尼给路达哟:
vscode提示‘Vetur find `tsconfig.json`/`jsconfig.json`, but they aren‘t in the project root.’
sunmeng_sunmeng: