模版

数据绑定error

    // .wxml 文件中使用模版时 data 绑定的key
	<view class="demo-main">
		<!-- 使用模版 通过data把数据传入 -->
		<template 
    is="products" data="{{productsList : demo.products}}">                    		     </template>
	</view>



	// 模版文件 tpl
	<template name="products">
    <view class="products-box">
        <block wx:for="{{productsList}}">
        </block>
    </view>
    </template>

模版路径引入错误

      <import src="../tpls/demo/demo-tpl.wxml" />

微信开发者工具 AppData 进行调试

微信小程序模版error总结

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2021-04-15
  • 2022-12-23
  • 2021-12-06
  • 2021-12-18
  • 2021-12-28
  • 2021-09-03
猜你喜欢
  • 2022-02-18
  • 2021-12-05
  • 2021-11-02
  • 2021-08-12
相关资源
相似解决方案