13,345
社区成员
发帖
与我相关
我的任务
分享
#component(MyFirstComponent "%{firstParam='some value',anotherParam='other value'}")
public class MyFirstComponent: ViewComponent
{
public override void Render()
{
object param1 = Context.ComponentParameters["firstParam"];
object param2 = Context.ComponentParameters["anotherParam"];
...
}
}
#component(ComponentName with "name=john" "address=some address")#component(ComponentName with "name=${customer.name}")