收藏
回答

往data中传数组最后显示无值是什么原因?

          pics+=res.data.words_result

          console.log(pics)

          if(pics==''){

            console.log(pics)

            that.setData({

            wordstext:false,

            faceend:true

            })

          }else{

            console.log(pics)

            that.setData({

            words:pics,// res.data.words_result,

            faceend:false,

            wordstext:true

            })

          } 

pics传给words不显示,但换成res.data.words_result则显示。

回答关注问题邀请回答
收藏
登录 后发表内容