How Can I concatenate a parameter string in javascript function on string in appended html?

前端 未结 5 1419
借酒劲吻你
借酒劲吻你 2021-01-17 04:45

This is my code for html

 

Then I append an inpunt to #content:

 $( document ).ready         


        
5条回答
  •  -上瘾入骨i
    2021-01-17 05:07

    I think you probably just weren't separating correctly. Try this exemple:

    onclick="mySup(\''+json.id+'\',\''+json.description+'\');"

提交回复
热议问题