示例代码的大小写问题。WXML语法参考"引用"板块

发布于 7 年前作者 heping11037 次浏览最后编辑 7 年前来自 ask
<!-- 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"/>

0 回复
暂无回复