示例代码的大小写问题。WXML语法参考"引用"板块
发布于 5 年前 作者 heping 10927 次浏览 来自 问答
<!-- A.wxml --><template name="A">
  <text> A template </text></template>
<!-- B.wxml --><import src="a.wxml"/><template name="B">//此行的"a.wxml"不是应该是"A.wxml"吗?
  <text> B template </text></template>

<!-- C.wxml --><import src="b.wxml"/><template is="A"/>  //此行的"b.wxml"不是应该是"B.wxml"吗?<!-- Error! Can not use tempalte when not import A. --><template is="B"/>

回到顶部