this.setData的性能问题
that.setData({
‘cardData.id’: editCardData.id,
‘cardData.name’: editCardData.name,
‘cardData.mobile’: editCardData.phone,
‘cardData.email’: editCardData.email,
‘cardData.cardStyle’: editCardData.card_style,
‘cardData.company’: editCardData.company,
‘cardData.title’: editCardData.title, …
})和
that.setData({
cardData: editCardData, //大对象
})请问这两个有区别么,哪个更好?
10 回复