起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1491|回复: 2

[结贴] input文本框无法读取readonly属性

[复制链接]

44

主题

150

帖子

298

积分

中级会员

Rank: 3Rank: 3

积分
298
QQ
发表于 2017-7-7 11:04:37 | 显示全部楼层 |阅读模式
代码:<input type="text" value="" xid="input1" class='wenzi form-control' readonly/>
报错:
Caused by: com.justep.ui.exception.UIException: com.justep.ui.exception.ValidationException: line 30, column 111 of file:///E:/wex5Subject/WeX5_V3.6/model/UI2/distributorSystem/distributionM/bankinfor.w: Fatal error: Attribute name "readonly" associated with an element type "input" must be followed by the ' = ' character.
file:///E:/wex5Subject/WeX5_V3.6/model/UI2/distributorSystem/distributionM/bankinfor.w, line 30, column 111: Fatal error: Attribute name "readonly" associated with an element type "input" must be followed by the ' = ' character.
        at com.justep.ui.xml.XMLUtils.inputSourceToSAX(Unknown Source)
        at com.justep.ui.xml.XMLUtils.inputStreamToSAX(Unknown Source)
        ... 22 more
发表于 2017-7-7 15:16:30 | 显示全部楼层
x5无法编译这样不符合规范的写法!你应该写成
readonly="true"


<input type="text" value="" xid="input1" class='wenzi form-control' readonly="true"/>
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

44

主题

150

帖子

298

积分

中级会员

Rank: 3Rank: 3

积分
298
QQ
 楼主| 发表于 2017-7-7 17:09:44 | 显示全部楼层
哈哈,后面换做disabled=‘true’来处理的
回复 支持 反对

使用道具 举报

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

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-4-27 14:22 , Processed in 0.071467 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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