Home  >  Article  >  Web Front-end  >  javascript reverse sorting method_javascript skills

javascript reverse sorting method_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:52:061239browse

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> var ul = document.getElementById('ul1'); var lis = ul.getElementsByTagName('li'); var i = lis.length; while (i--) ul.appendChild(lis[i]); </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn