原生javascript实现addClass,removeClass,hasClass函数