阅读背景:

为什么名为'index.js'的JavaScript文件在Django模板中不起作用?

来源:互联网 

I am working on a Django project and my JavaScript file was not loading on the HTML template. After a lot of tinkering, what finally got the file to load was changing its name from 'index.js' to 'homepage.js' but I could have changed it to anything. I wanted to keep the file consistent with the HTML and CSS files that are named 'index.html' and 'index.css'. I am working on a Django project and my JavaScr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: