let slice = Array.prototype.slice slice.call(document.querySelectorAll("li"))
将dom转成list
原文:https://www.cnblogs.com/angdh/p/14983567.html