項目用Taro 開發的h5 頁面今天在訪問的時候首頁不能訪問,命令行顯示錯誤
'CSSStyleDeclaration': Index property setter is not supported.react
在issues翻到了說明,大概是這樣git
原來如此!github
而後,搜索了一下首頁哪裏用了 style={屬性} 使用了string 或者數組,結果沒發現。數組
最後肯定是 taro 的 Swiper 組件上的style 致使spa
修改後頁面報錯解決,頁面正常顯示命令行