aardio 官方社区

用户名  找回密码
 注册会员

QQ登录

只需一步,快速开始

帖子
查看: 15802|回复: 3

按钮禁用之后如何再次启用

[复制链接]

117

主题

1103

回帖

6572

积分

六级会员

积分
6572
发表于 2012-6-23 15:34:13 | 显示全部楼层 |阅读模式
import win.ui;
/*DSG{{*/
var winform = ..win.form( bottom=399;parent=...;text="HTMLayout - 使用file控件";right=599 )
winform.add(  )
/*}}*/

import web.layout;
wbLayout = web.layout(winform)

wbLayout.html =
/**
<input type=button value="按钮" disabled="disabled" />
**/

winform.show();
ele=wbLayout.queryEle(
"input")

ele.disabled=
false;


win.loopMessage();

33

主题

497

回帖

3294

积分

荣誉会员

积分
3294
发表于 2012-6-23 15:56:57 | 显示全部楼层
ele.state.disabled = false;

117

主题

1103

回帖

6572

积分

六级会员

积分
6572
 楼主| 发表于 2012-6-23 16:11:22 | 显示全部楼层
lujjjh 发表于 2012-6-23 15:56
ele.state.disabled = false;

非常感谢

4

主题

852

回帖

4689

积分

荣誉会员

积分
4689
发表于 2012-6-23 17:14:47 | 显示全部楼层
import win.ui;
/*DSG{{*/
var winform = ..win.form( bottom=399;parent=...;text="HTMLayout - 使用file控件";right=599 )
winform.add(  )
/*}}*/

import web.layout;
wbLayout = web.layout(winform)

wbLayout.html =
/**
<input type=button value="按钮" disabled="disabled" />
**/

winform.show();
ele=wbLayout.queryEle(
"input")

ele.disabled =
null;
ele.update();

win.loopMessage();




您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

手机版|未经许可严禁引用或转载本站文章|aardio.com|aardio 官方社区 ( 皖ICP备09012014号 )

GMT+8, 2025-6-17 16:12 , Processed in 0.065555 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表