FED

©FrontEndDev.org
2015 - 2024
web@2.23.0 api@2.21.1

coolie加载问题

我不用这种的写法,而是使用这样的写法: <script src="./source/coolie/coolie.js"></script> <script src="./coolie-config.js"></script> <script>coolie.use("../js/demo.js");</script> 虽然正确执行,但F12工具依然能监测到两个错误: GET file:///D:/home/webroot-dev/source/coolie/index.js net::ERR_FILE_NOT_FOUNDrequest @ coolie.js:524(anonymous function) @ coolie.js:1410(anonymous function) @ coolie.js:1411(anonymous function) @ coolie.js:1412 coolie.js:848 Uncaught can not found module: file:///D:/home/webroot-dev/source/coolie/index.js 已知入口模块文件名我已经强制改成demo.js,而且不放在与coolie同一个目录下。但index.js文件一直都有默认载入。请问如何消除?难道是coolie一直都有一个默认入口路径,还是一个BUG?