reader

 

Js代码


 1 var str1 = "<button type=\'button\' class=\'btn btn-primary\' onclick=\'SaveNewGoodsInfo( \'"+goodsnum+"\',1)\'>保存</button>"; 2 3 $("#span_btnSave").html(str1); 

 

 

结果

 

1 <span id="span_btnSave"><button type="button" class="btn btn-primary" onclick="SaveNewGoodsInfo( " g1023\',1)\'="">保存</button></span>

 

分类:

技术点:

相关文章:

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