@H_301_0@这里的微信小程序动态加载是以按钮为例,主页面点击不同的按钮进入不同的子页面中,根据主页面的title来动态加载子页面按钮的数量以及值。
@H_301_0@效果图:
<p style="text-align: center">

@H_301_0@wxml文件(注意wx:key="item"要写,不然它会有警告):
<div class="jb51code">
<pre class="brush:xml;">
<view class="className" style="background-color: rgb(225,218,211); height:{{className_height}}px" wx:for="{{array}}" wx:key="item">
<button class="items" id="{{stv.id[index]}}">{{item.name}}