Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道用另一个标签自动包围预定义标签(例如容器标签)的方法。
例如。您有不同的容器类型,例如 article.tag、video.tag、image.tag 等。每次我调用这样的容器时,我都希望它自动被另一个信封标签包围。
<myc:article/>
这可能吗?有谁知道这样做的方法?
解决这个问题的一种方法是设置一个自定义标签(例如,称为信封标签)并将内部标签的名称作为属性提交。然后解析名称..并“瞧”插入内部标签(例如inner.tag)
<myc:envelope containerType="inner"/>
就是这个..