Home  >  Q&A  >  body text

USE keyword

After the use keyword is introduced into a class, can the attributes of this class be directly called?

玉簟秋玉簟秋1769 days ago1362

reply all(1)I'll reply

  • 有什么是忘不了的。

    有什么是忘不了的。2020-01-07 19:21:54

    If you use the tp framework, you can directly introduce it, instantiate it and call it.

    If you are not using it in a framework, you need to load the file yourself. Framework: Such as tp framework, they are all automatically loaded. After you use a class, the file will be automatically loaded. So in fact, after a use class comes in, it still needs to load the file.

    If I understand correctly, this is what it looks like.

    reply
    0
  • Cancelreply