I have this unordered list
<ul>
<li>two</li>
<li>three</li>
</ul>
有没有什么方法可以让无序列表变成这样?
<ul>
<li>ONE</li>
<li>two</li>
<li>three</li>
</ul>
Notice the "ONE" is added to the FRONT/TOP of the list.
I have this unordered list
<ul>
<li>two</li>
<li>three</li>
</ul>
有没有什么方法可以让无序列表变成这样?
<ul>
<li>ONE</li>
<li>two</li>
<li>three</li>
</ul>
Notice the "ONE" is added to the FRONT/TOP of the list.
$("ul").prepend("<li>ONE</li>");