摘要: object.setAttribute(sName, vValue [, iFlags]) sName参数应是Dom属性而非html中的属性。Dom中Html专有的接口属性应该以小写字母开头,如果属性有多个单词构成,第二个单词以及接下来的每个单词的首字母都要大写,如frameBorder。另外说一下iflags参数:iFlags Optional. Integer that specifies one the following flags:0 When the attribute is set, it overwrites any attributes with the same nam.. 阅读全文
posted @ 2013-09-11 14:07 lhgcore.J 阅读(1626) 评论(0) 推荐(0) 编辑