自定义组件中如何在一个传参中传入多个数据?
在template中想要实现这种方法,用es6的特性扩展运算符就可以解决
<template is="stdInfo" wx:for="{{stdInfo}}" wx:key='index' data="{{...stdInfo[index], ...{index: index, name: item.name} }}"></template>
在自定义组件中用es6新特性是实现不了的,想问如何在自定义组件中实现类似效果,多个传参的话名字太多不便于管理
