【发布时间】:2019-02-16 04:14:11
【问题描述】:
我正在使用 socket.io 制作一个聊天应用程序。当我想提取客户端文件时,它给了我这个错误:
不允许加载本地 资源:file:///C:/%20/Users/x/Desktop/Node%20Code/Chat%20Bot/node_modules/socket.io-client/dist/socket.io.js
我的html文件:
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Chat App</title>
<script src="file:///C: \Users\x\Desktop\Node Code\Chat Bot\node_modules\socket.io-client\dist\socket.io.js"></script>
</head>
<body>
</body>
</html>
【问题讨论】:
标签: javascript socket.io