bin20060407 / artdialog

Automatically exported from code.google.com/p/artdialog
0 stars 0 forks source link

button加入ID的属性吧 #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
建议设置button的时候加入Id吧,这样像删除某个按钮的时候方
便一些

自己修改了下:

if (val.className) button.className = val.className;
if (val.id) {button.id = val.id;}
if (val.focus) {
    that._focus && that._focus.removeClass(strongButton);
    that._focus = $(button).addClass(strongButton);
    that.focus();
    };

Original issue reported on code.google.com by cxj...@gmail.com on 9 Dec 2011 at 5:25

GoogleCodeExporter commented 9 years ago
我也觉得按钮有id是非常需要的,有时候测试会根据id来自动�
��测试,没有id也很不方便,希望楼主更新版本能够支持

Original comment by yi...@foxmail.com on 18 Oct 2012 at 4:01

GoogleCodeExporter commented 9 years ago
楼主你好,请问你这段代码要加在什么地方才会起作用?

Original comment by yanhan56...@gmail.com on 25 Nov 2013 at 8:11