blazor 获取url的参数

@inject NavigationManager navigation

_url = navigation.Uri;
var query = HttpUtility.ParseQueryString(_url);
query["page"]//即可获取

  

posted @ 2021-01-20 23:33  ToLing·  阅读(1317)  评论(1编辑  收藏  举报