Now there is a problem of js code execution failure. Please take a look at it. Is there any good solution?

clipboard.png
the click event itself can be executed normally. Now the need to re-assign the html in the BODY as a string js will be invalid.

May.05,2022

look at your page, there is no citation of jq, where did you get the $?

$(str). Html () itself has a problem

just document.body.innerHTML = str directly


use event delegation

Menu