您当前的位置: 首页 > 

[extjs] textField disabled readOnly属性

发布时间:2014-08-12 11:55:47 ,浏览量:0

extjs textfield 设置成为了disabled:true以后此文本框的内容就无法通过form表单提交到后台去了,disable:true就不能submit, 不了解ext的设计组这样设置有什么样的好处?还请明了者相告?不胜感激, 但是又想让文本框不可编辑,还要能将其内的值提交到后台去,extjs还为我们提供的类型,html的不可编辑表单的解决方案; 其实方案很简单:ext提供了readOnly的属性; disabled:原版英文介绍: True to disable the field (defaults to false). Be aware that conformant with the HTML specification, disabled Fields will not be submitted. 译文: 此属性的默认值是false,将其设置为true则变成为空用的了。 为了符合html的规范,如果使用了disabled(true)属性,此属性的值将不会被提交

当使用了readOnly时,针对的直接是dom元素了

来自:http://blog.csdn.net/serenada/article/details/6177878

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    108476博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0471s