Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
可视化界面的脚本,在画布脚本里创建的对象,怎样在按钮脚本里调用
截图看一下你怎么创建的对象
@核桃酥
这个socket对象,在按钮里怎么调用
要是想在按钮中调用,可以吧socket对象绑定到windows上
@核桃酥 怎么绑定,麻烦详细解释一下
把14行的let socket 换成window.socket 然后在按钮中直接用socket就行了