小程序页面路径参数怎么看
小程序获取当前页面路径及参数的代码:
exportfunctiongetCurrentPageUrlWithArgs(){constpages=getCurrentPages()
constcurrentPage=pages[pages.length-1]
consturl=currentPage.route
constoptions=currentPage.options
leturlWithArgs=`/${url}?`
for(letkeyinoptions){
constvalue=options[key]
urlWithArgs+=`${key}=${value}&`
}
urlWithArgs=urlWithArgs.substring(0,urlWithArgs.length-1)
returnurlWithArgs
}
上一篇:wang域名怎么样
小程序 小程序页面 路径参数
webacc.exe是什么文件?webacc.exe是不是病毒
WINSYS.vbs是什么文件?WINSYS.vbs是不是病毒
winssh.exe是什么文件?winssh.exe是不是病毒
wt.exe是什么文件?wt.exe是不是病毒
winsysetm.exe是什么文件?winsysetm.exe是不是病毒
winstrve.exe是什么文件?winstrve.exe是不是病毒
winsysupd7.exe是什么文件?winsysupd7.exe是不是病毒
winsysupd.exe是什么文件?winsysupd.exe是不是病毒
winsysupd2.exe是什么文件?winsysupd2.exe是不是病毒
winsysupd8.exe是什么文件?winsysupd8.exe是不是病毒