前言
我是歌謠 我有個兄弟 巅峰的時候排名c站總榜19 叫前端小歌謠 曾經我花了三年的時間創作了他 現在我要用五年的時間超越他 今天又是接近兄弟的一天人生難免坎坷 大不了從頭再來 歌謠的意志是永恒的 放棄很容易 但是堅持一定很酷
導語
歌謠 歌謠 這邊封裝了一個元件 元件裡面傳入的值必須有一個固定格式belongListData
? belongListData?.belongList 必須是個belongList
解決思路
if (
belongListData.hasOwnProperty('inCustomerBelongList')
||
belongListData.hasOwnProperty('outCustomerBelongList')
) {
belongListData.belongList =
belongListData.inCustomerBelongList
|| belongListData.outCustomerBelongList;
}