$CLASS('page__hd')[0].style.backgroundColor="red"

const $ID = (p) => document.getElementById(p)
const $CLASS = (p) => document.getElementsByClassName(p)

原文地址:https://www.cnblogs.com/rsapaper/p/9626786.html