(4)事件处理——(2)在页面加载的时候执行任务(Performing tasks on page load)

We have already seen how to make jQuery react to the loading of a web page. The $(document).ready()event handlercan be used to fire off a function's worth of code, but there's a bit more to be said about it.

 

我们已经看到了如何让jquery为加载网页做出反应。$(document).ready()事件处理器可以被用来启动一段代码的函数作用,但是这里还有有一些东西需要讲一下。


 

 

你可能感兴趣的:(form)