search

Home  >  Q&A  >  body text

javascript - At which stage in the life cycle can vue import js be used?

At which stage in the life cycle can permission be used?

怪我咯怪我咯2788 days ago899

reply all(5)I'll reply

  • 天蓬老师

    天蓬老师2017-05-19 10:46:07

    If you put it in, you can use it

    Call: Pub.xxx()

    js file inside
    export const xxx= () => {
    }
    export default { xxx }

    reply
    0
  • 阿神

    阿神2017-05-19 10:46:07

    It should all work

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-19 10:46:07

    Created and beforeMount are both available, tested by myself.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:46:07

    You can use it anytime, vue is not very invasive. Can be used with many things

    reply
    0
  • PHPz

    PHPz2017-05-19 10:46:07

    Yes, permission. The js was not written well, resulting in undefined references

    reply
    0
  • Cancelreply