📅  最后修改于: 2022-03-11 15:01:49.297000             🧑  作者: Mango
var my_elem = document.getElementById('my_id');
var span = document.createElement('span');
span.innerHTML = '*';
span.className = 'asterisk';
my_elem.parentNode.insertBefore(span, my_elem);