0

此内容 div 不断重新加载以显示实时数据,因此未触发 onClick 事件。请提出替代方案

function () {
  function render() {
    content.empty()
    content.addCass('test').append(
     $('<div>').text('content goes here')
    ).on('click', () => {
       $('this').hide()        
       return false
    })
  }
var content = $('<div>')
return render()
}
4

0 回答 0