账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    报错Cannot read property 'length' of undefined ?
    22
    0

    报错如下:
    Uncaught TypeError: Cannot read property 'length' of undefined
    请问是哪里出问题了, 该怎么解决, 谢谢
    html

    
      changeIndex (index){
        console.log(index)
        this.activeIndex = index
        this.sportDatabaseOrderBy = this.sportDatabase.slice(0) // 数组深拷贝
        for (let i = 0; i < this.sportDatabaseOrderBy.length; i++) {
           let firstLetter = py.getFullChars(this.sportDatabaseOrderBy[i].name).slice(0,1)
           this.sportDatabaseOrderBy[i].firstLetter = firstLetter
        }
      }
    0
    打赏
    收藏
    点击回答
        全部回答
    • 共 0 条
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部