`require 'socket.io-client.js'` not working

前端 未结 3 872
生来不讨喜
生来不讨喜 2020-12-09 12:26

I was able to get the basic socket.io server application running on my own server, and request it directly through any web browser (I tried FF, chrome, and IE7 which all wor

3条回答
  •  青春惊慌失措
    2020-12-09 13:14

    You can use Browserify (http://browserify.org) or WebPack (http://webpack.github.io) to use node-like CommonJS requires on the client-side.

提交回复
热议问题