Appearance
判断一个元素是否有Class
import { hasClass } from "tool-assistant;
import { hasClass } from "tool-assistant"; var element = document.getElementById("myElement"); var hasClass = hasClass(element, "myClass"); console.log(hasClass); // 输出 true 或 false