<input type="text"  />  

 

获取自定义属性值:

 document.getElementById("txtBox").getAttribute("displayName");  
 document.getElementById("txtInput").attributes["displayName"].nodeValue

设置自定义属性值:

document.all.txtBox.setAttribute("displayName ","123456");  
document.getElementById("txtInput").attributes["displayName"].nodeValue = "123456"

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-03-03
猜你喜欢
  • 2021-10-15
  • 2021-05-31
  • 2021-08-31
  • 2021-09-12
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案