在html页面的js文件中添加如下代码:

var bodys = document.getElementsByTagName("body")[0];

bodys.innerHTML +=' <script type="text/html" >'+
'<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail" style="background-color:#009688; color:#ffffff;">'+
'<i class="layui-icon layui-icon-search" width="15" height="15"></i>详细信息</a></script>';

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-02-02
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-08-29
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案