js创建了一个a标签

 

row.id 为后台获取的数据   拼接到fun()函数中

actions.push('<a href="javascript:void(0)" class="btn" onclick=\'fun("'+row.id+'")\' ></a>');

 

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-09-02
相关资源
相似解决方案