search

Home  >  Q&A  >  body text

How to pass parameters in dependency injection?

If the index() method uses dependency injection, how to pass parameters to $name?

明月松间照明月松间照1391 days ago1133

reply all(1)I'll reply

  • 灭绝师太

    灭绝师太2021-02-07 09:06:41

    When calling the index method, you can directly pass the external parameters as actual parameters

    reply
    0
  • Cancelreply