Code here
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
edit={cls="edit";text="Edit";left=432;top=272;right=624;bottom=328;edge=1;multiline=1;z=2};
plus={cls="plus";left=208;top=272;right=376;bottom=320;border={bottom=1;color=-16777216};editable=1;z=1}
)
/*}}*/
var cun1 = function(is){
if(is=1){
win.msgbox(is)
return false;
}
elseif(is = 2){
win.msgbox(is)
return false;
}
else {
win.msgbox("错误")
return false;
}
import console
console.dump(123)
}
winform.plus.editBox.onFocusLost = function(){
cun1(owner.text)
}
winform.show();
win.loopMessage();
这个代码 在plus失去焦点的时候会执行两次函数,如何解决呢?