jQuery里 怎么获取 class 的类名

最好使用 prop,不用 attr
$("#div123").prop("className");
原文地址:https://www.cnblogs.com/gwzzllw/p/6046093.html