怎么用javascript动态向标签中添加属性用setAttribute方法就可以了,如:document.getElementById('d','123456')如果是动态添加标签的话:var parent = document.getEle2023-04-25JavaScript320