Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
taro编写的代码在小程序可以正常运行
而编译成h5之后,涉及到列表渲染就报错,具体复现如下:
在代码中,index页面传入数据到自定义组件‘taskListA’,数据为一个对象,对象中包含一个数组属性
在组件中,使用map方法遍历该数组,页面初始化渲染正常
当调用方法对该数据增加或者删除项的时候,数据可以正常传入组件,但无法渲染,并报如下错误
而同样的列表渲染情况,不使用组件则不会出现