search

Home  >  Q&A  >  body text

Browser cannot load chartjs - Stack Overflow

I used Express to write a web application and used chartjs to generate charts, but the browser could not load the Chart.bundle.min.js file.
Chrome59 and Firefox have been tried, but they cannot be loaded; I accessed 127.0.0.1/js/Chart.bundle.min.js and it can be accessed, indicating that there is no problem on the server side. Next, there is indeed a script tag that loads the js in the html, but the file is not in the debugging tool source.

Guess: In the Elements panel of Chrome DevTools, the src attribute of the other script tags are underlined. The underline indicates that this is a URL. Only the src attribute of the script tag of chartjs is not underlined, indicating that Chrome doesn't treat it as a URL, so the file won't be loaded. But why doesn't Chrome parse it into a URL?

学习ing学习ing2786 days ago962

reply all(3)I'll reply

  • 阿神

    阿神2017-06-24 09:45:16

    The script tag of your chartjs (the first picture in the question) src is written as scr

    reply
    0
  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-24 09:45:16

    How to write and post the label

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-06-24 09:45:16

    I saw there is a space after your chart...

    reply
    0
  • Cancelreply