MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    无法解析getSubject()

    开发交流
    3
    9
    336
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      redsteve last edited by

      先给各位拜个年
      就是说,为什么无法解析getSubject()
      甚至是直接抄的文档的代码,但还是这样儿0ff1f6d9-30db-4022-a56b-087f67bae9f6-图片.png

      1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh last edited by

        不知道,代码不完整
        没空给你翻文档
        你应该顺便说一下是哪个位置的文档

        R 1 Reply Last reply Reply Quote 0
        • R
          redsteve @cssxsh last edited by

          @cssxsh #在 EventChannel 监听事件

          1 Reply Last reply Reply Quote 0
          • MrXiaoM
            MrXiaoM 童心未泯 last edited by MrXiaoM

            第一个参数不是填事件类吗,你填个事件通道属实逆天(

            see EventChannel.suscribe()

            R 1 Reply Last reply Reply Quote 0
            • R
              redsteve @MrXiaoM last edited by redsteve

              @MrXiaoM 确实逆天,抄都能抄歪喽()
              但改完之后还是无法解析()

              cssxsh 1 Reply Last reply Reply Quote 0
              • cssxsh
                cssxsh @redsteve last edited by

                @redsteve
                你应该把改过的继续发出来

                R 1 Reply Last reply Reply Quote 0
                • R
                  redsteve @cssxsh last edited by

                  @cssxsh 就是,文档里的这种8b327d67-5ee0-4856-8e12-ed23bf42b998-图片.png 91c1e08a-04ea-4252-9ef8-a62ffc025c73-图片.png

                  1 Reply Last reply Reply Quote 0
                  • cssxsh
                    cssxsh last edited by

                    getSubject 是 MessageEvent 及其子类 才有的
                    你填的是 MessageEvent 吗

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      redsteve @cssxsh last edited by

                      @cssxsh lambda中参数自动定义为了object,是需要向下转型吗

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact