miniCanvas
is an element, but you're treating it as a string here:
'<div>'+miniCanvas'+<p>Name</p></div>'
(Not to mention the syntax error, which is either causing errors in your code or you've modified the code in the question.)
One approach would be to create the wrapping div
element and append it to that. Something like this:
let div = $('<div/>');
div.append(miniCanvas);
div.append('<p>Name</p>');
$('#mini-canvas-grid').append(div);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…