how to insert onClick event in html string

前端 未结 0 1637
忘了有多久
忘了有多久 2020-12-31 10:57

I am trying add onClick method to html string and then adding it to html element using insertAdjacentHTML

function renderHtml(sendMessage, userId) {
  return          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题