Coder Social home page Coder Social logo

Comments (10)

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

在activity中没有收到fragment传递过来的数据

from component.

xiaojinzi123 avatar xiaojinzi123 commented on May 22, 2024

你先看下字段的引用有没有

image

from component.

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

屏幕快照 2020-04-10 下午8 21 00

代码 生成了有 但是在activity中 对应的引用没有

from component.

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

页面是跳转过来了的 引用就是为空

from component.

xiaojinzi123 avatar xiaojinzi123 commented on May 22, 2024

既然代码生成了, 说明生成的部分没有问题.

那你可以调试一下代码. 看下 Component.inject 那句代码里面在哪一步出错了.
这样子即可排查出错误.
请把调试出来的错误信息也粘贴一下

from component.

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

好的 我好像知道问题了 在文档里找到 Component.inject(this) 这句 看您的例子 找到了 谢谢

from component.

xiaojinzi123 avatar xiaojinzi123 commented on May 22, 2024

....................................................................................................... 你没写这句吗?

from component.

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

是的 文档里没提 自己没注意 总觉得缺少点什么 于是仔细再看了你项目的代码

from component.

xiaojinzi123 avatar xiaojinzi123 commented on May 22, 2024

你别骗我撒, 文档 中很明显有这么一段:

image

这文档都很久没动了哦.

反正问题解决就好了. 我这里关闭了撒.

from component.

ganzhex2019 avatar ganzhex2019 commented on May 22, 2024

谢谢 哥老关

from component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.