var board_code_clone = $('#board_code').contents().clone(false);
alert( board_code_clone.filter('div').eq(x).children().eq(y).text() );//make this right
我想要一个与此等效的代码
$('#board_code_dup > div').eq(x).children().eq(y).text();
我这样做的目的是复制他们在#board_code 上键入的代码,然后我将尝试使用 board_code_clone 对其进行操作,然后将操作后的 board_code_clone 附加到 html dom