【发布时间】:2021-11-18 04:52:17
【问题描述】:
我的问题很简单:如何在我的 URL 中指定一个参数,例如,如果 URL 是
https://localhost:5001/passParameter/thisIsAString
我有代码
@code {
<p>@(urlParameter)</p>
[Parameter] public string urlParameter { get; set; }
}
然后页面会显示“thisIsAString”?我到处搜索,但没有找到解决方案。感谢您的帮助!
【问题讨论】: