classList add报错
Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.
写的时候出现这个错误,已经解决
传入className不能为空字符串
Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.
写的时候出现这个错误,已经解决
传入className不能为空字符串