We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
钩子函数源于Windows的消息处理机制,通过设置钩子,应用程序可以对所有消息事件进行拦截,然后执行钩子函数,对消息事件进行想要的处理方式。
JS获取DOM数据的两种方式:
var btn = document.getElementsByTagName('button'); btn.addEventListener('click', function() { // doSomething });
btn.onclick = function() { // doSomething }
二者的区别:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
钩子函数源于Windows的消息处理机制,通过设置钩子,应用程序可以对所有消息事件进行拦截,然后执行钩子函数,对消息事件进行想要的处理方式。
JS获取DOM数据的两种方式:
二者的区别:
回调函数是主动触发函数,然后执行函数,一般是局部的。
回调函数是在整个过程结束后才会执行。
The text was updated successfully, but these errors were encountered: