一、改变单个样式

   var obj = document.getElementById("id");
  obj.style.cssText = " display:block;color:White;
二、改变css整个样式名
var obj = document.getElementById("btnB");
  //obj.className = "style2";
  obj.setAttribute("class", "style2");
(摘抄自:https://www.cnblogs.com/anstoner/p/8012730.html)
三、改变内容  
$('#id').text('啥啥啥');
$('#id').val('啥啥啥');

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案