目录结构如下:
demo.js index.html public javascript jquery.js
没有用express,清爽node,server运行在127.0.0.1:3000
在index.html页面中,<script src="/public/javascripts/jquery.js"></script>,各种找不到jquery
Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/public/javascripts/jquery.js".
url地址栏随便输,只要开头是http://127.0.0.1:3000,都跳到index页面上,这是神马情况…求扫盲
11 回复