search

Home  >  Q&A  >  body text

javascript - Static pages reference public header and tail files, how to write js?

Static pages reference public header and tail files, how to write js?

欧阳克欧阳克2809 days ago975

reply all(6)I'll reply

  • PHP中文网

    PHP中文网2017-07-05 10:45:44

    What framework are you using?

    reply
    0
  • 漂亮男人

    漂亮男人2017-07-05 10:45:44

    require or import

    reply
    0
  • ringa_lee

    ringa_lee2017-07-05 10:45:44

    How to write js? I don’t know yet anyway. Give up, boy

    reply
    0
  • 大家讲道理

    大家讲道理2017-07-05 10:45:44

    Quote directly in public documents.

    <script src="dist/js/common2.js?"></script>

    reply
    0
  • 欧阳克

    欧阳克2017-07-05 10:45:44

    If you open it on the server, there will be no problem, only Firefox will display it

    reply
    0
  • typecho

    typecho2017-07-05 10:45:44

    But use js string concatenation, and then append the relevant ele

    reply
    0
  • Cancelreply