Skip to content

go_app是否可以携带参数 #242

Answered by wang0618
Zhaoyuhang97 asked this question in Q&A
Discussion options

You must be logged in to vote

可以自己手工拼接参数,然后使用 run_js("location.href=url", url='/?app=B&uid=0001') 跳转新页面。
在新页面,使用 uid = eval_js("new URLSearchParams(window.location.search).get('uid')") 获取员工号

参见: https://pywebio.readthedocs.io/zh_CN/latest/cookbook.html#get-url-parameters-of-current-page

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Zhaoyuhang97
Comment options

Answer selected by Zhaoyuhang97
Comment options

You must be logged in to vote
2 replies
@fasnlfoqw
Comment options

@FHU-yezi
Comment options

Comment options

You must be logged in to vote
1 reply
@WeiminWangKolmostar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants