给html element添加atrribute,包括javascript字符串截取

code snippet:

e.Row.Attributes.Add("onmouseover", "if(this.className.indexOf('project-listitem-selected')<0)this.className+=' project-listitem-mouseover'");
 

e.Row.Attributes.Add("onmouseout", "if(this.className.indexOf('project-listitem-selected')<0)this.className=this.className.substring(0,this.className.indexOf(' project-listitem-mouseover'))");

相关文章:

  • 2021-10-20
  • 2021-08-09
  • 2022-12-23
  • 2021-08-23
  • 2021-07-31
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2021-08-31
  • 2021-11-15
  • 2021-11-01
相关资源
相似解决方案