Browser cannot load chartjs - Stack Overflow
学习ing
学习ing 2017-06-24 09:43:16
0
3
877

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
学习ing

reply all(3)
阿神

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

女神的闺蜜爱上我

How to write and post the label

phpcn_u1582

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template