var a = document.createElement("input");
        a.type = "text";        di.appendChild(a);我想为动态添加的文本框设置maxlength有什么办法吗?
直接a.maxlength好像不行