Old Code:
$('code').click(function () { console.log($(this).text()); });
New Code:(.container 是<code>所在的div)
$('.container').on("click", "code", function () { console.log($(this).text()); });
Old Code:
$('code').click(function () { console.log($(this).text()); });
New Code:(.container 是<code>所在的div)
$('.container').on("click", "code", function () { console.log($(this).text()); });