Building a chat system with Javascript [closed]
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to build a small(for less than 100 users) chat system with a javascript and html alone. It should be able to work consistently in a browser and store all the chats in a database at server? Now if it is possible then what would be the merits and demerits of it comparing it to other traditional chat client. 回答1: Yes/No. You can implement a chat system using JavaScript and HTML alone using one of three things P2P cross browser communication (only works in opera) CORS/JSONP remote server to relay chat messages (requires a third