如何引用我建的JS文件?
发布于 13 年前 作者 jewel 5798 次预览 最后一次回复是 13 年前 来自
目录结构 <pre> <code> images style.css … js jquery.min.js index.js node_modules socket.io index.html server.js </code> </pre> 我在index.html 里写的 <script src=“js/jquery.min.js” type=“text/javascript”></script> <script src=“js/index.js” type=“text/javascript”></script> <link href=“images/style.css” rel=“stylesheet” type=“text/css” /> 都无效,请问是server.js里还需要怎么配置下吗?
2 回复
需要自己读文件流,然后返回 :D
访问链接:http://127.0.0.1:9337/