include 的文件中,找不到 Template 名
看文档
include可以将目标文件除了<template/>的整个代码引入,相当于是拷贝到include位置
我在 index.html 中 include 了 footer.wxml,
在 footer.wxml 中可以引用 index.js 中的 data,
然而 我在 index.html 中 定义了一个模板
<template name="name"> <view>index中的模板</view></template> |
然后在 footer.wxml 中 引用
<template is="name" /> |
预览的时候报
Template “name” not found.
include 中的模板也是有作用域?
