代码如下:
for i:=0 to 20 do
begin
if Frm[i]<>nil then
if Frm[I].Name=ProCaption then
begin
BaesFrame := Frm[i];
IsOpen := True;
Break;
end;
end;
if IsOpen then exit;
为什么这段代码是在服务器端执行,而不是在客户端执行呢?
解答: UniGUI的运行机制就是除非你在ClientEvents里的东西,其他都是要由UniGUI通过后台程序执行完成后解析成js发回客户端浏览器显示。
事件中的代码在服务器端和客户端,哪一端执行?
最新推荐文章于 2024-05-06 00:06:21 发布