socket.io - ReferenceError: io is not defined

后端 未结 8 1573
再見小時候
再見小時候 2020-12-02 13:11

I am writing an application for Android 2.3.5 (that will also be compatible with iOS). I wish to transfer data from the app\'s HTML/Javascript to a Python program on a serve

8条回答
  •  北海茫月
    2020-12-02 14:08

    I managed to blunder through this, and squandered about an hour, on something that turned out to be a very basic error.

    When an function is not defined? Such as " Uncaught ReferenceError: io is not defined ". Does that not mean that the function is getting "used" before it is "created"?

    In the part of my HTML file, that "calls" the javaScript files, it looked like this :

     
    
    

    and i changed it to this

     
     
    

    So now the item "io", whether it is an object or function... Is actually getting created before it is getting used :D

    Have FUN!

提交回复
热议问题