停止while循环

admin2021-01-29  105

winform.button.oncommand = function(id,event){
        if(winform.button.text == "开始"){
                winform.button.text = "停止"
                myfunc()
       }
        else winfom.button.text = "开始"               
}
myfunc = function(){
        while(win.delay(1)){
                if(winform.button.text == "开始")
                break;
        }         
}
转载请注明原文地址: http://www.aardio.net/read-147.html
最新回复(0)