小编sw1*_*337的帖子

如何在子组件中访问父组件类型?

在子组件中,如何访问对父组件的引用?如果子级嵌套在特定类型的父级中,我需要在子级中执行特定操作。

<MyParentComponent>
    <MyChildComponent></MyChildComponent>
</MyParentComponent>
Run Code Online (Sandbox Code Playgroud)

c# asp.net-core blazor

2
推荐指数
1
解决办法
1316
查看次数

标签 统计

asp.net-core ×1

blazor ×1

c# ×1