|
this._tagI += 1;
var parentNode = this.getElementByXid("newTagDiv");
var option = {
parentNode : parentNode,
// input的属性,设计时有的属性都可以设置
xid : "tag"+this._tagI,
dataType : "String",
maxLength : 6,
placeHolder : "请输入标签内容",
autoComplete : false,
class : 'form-control x-edit',
style : 'height:30px;width:150px;display:inline-block;margin-right:5px;',
readonly : false,
disabled : false,
};
new input(option);代码input能正常出来,样式和xid这些都对,但是我设置maxLength和placeHolder不起效果,不存在中文逗号问题,我该怎么改写法?
|
|