getAttribute()

chk.getAttribute('tem') == vid

getattribute()方法用来获取自定义属性,

在该函数中屏蔽了chk为null的异常;

原文地址:https://www.cnblogs.com/thxuaimin/p/3498117.html