<ul>
<li></li>
<li id="index0"></li>
<li></li>
<a onclick="delete()"></a>
</ul>
</div>
<div>
<ul>
<li></li>
<li id="index1"></li>
<li></li>
<a onclick="delete()"></a>
</ul>
</div>
<div>
<ul>
<li></li>
<li id="index2"></li>
<li></li>
<a onclick="delete()"></a>
</ul>
</div>
Click the delete button, it will rearrange the following
the original id is index0, index1, index2, for example, delete the first line and become index0, index1, instead of index1, index2 Please enter the code