🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## Thread:setScriptParam ###接口说明 >设置参数 > +++ put:setScriptParam var:thread=当前的线程句柄# <<< success 无返回类型 +++ ###代码演示 ~~~ var main(var t,var params) { var thread = new Thread; thread.setScriptFile("script/newthread.cpp"); thread.setScriptParams(t.getThreadID()); thread.startThread(); } var handlequeue(var data) { println(data); } newthread.cpp var main(var thread,var params) { postMsgToThread(params,"我开启了"); //多线程传送内容 println("线程开启成功"); } ~~~