let a = document.querySelecot(element) a[i] 当element=元素和类时候有效 当为id无效 因为id是唯一的 只有一个 转载于:https://www.cnblogs.com/-constructor/p/10899909.html