{"hidden":false,"children":[{"configs":{"itemId":"module"},"expanded":true,"children":[{"configs":{"quoted":"true","itemId":"text","js":"var runnable, thread;\nrunnable = new java.lang.Runnable({\n  run: function() {\n    print('线程开始...'); //在系统控制台输出\n  }\n});\nthread = new java.lang.Thread(runnable);\nthread.start();"},"expanded":false,"children":[],"type":"string"},{"configs":{"layout":"fit","itemId":"viewport1"},"expanded":true,"children":[{"configs":{"itemId":"xwl1","file":"m?xwl=sys/dialog/dev/script-editor"},"expanded":false,"children":[],"type":"xwl"}],"type":"viewport","events":{"afterrender":"app.xwl1.setValue(\"{#text#}\", null, true);"}}],"type":"module"}],"roles":{"demo":1},"title":"多线程","iconCls":"","inframe":false,"pageLink":""}