Tag: 准备就绪

jquery – $(document).ready函数内的函数

在其中创建函数是否正确 $(document).ready(function() { 像这样: $(document).ready(function() { function callMe() { } }); .ready()内部的函数不必在dom准备好之前调用,并且触发ready()内部的事件。 只是澄清一点 – 这里是代码,它将说明问题: $(function() { var ind = 0; // some event is executed and changes the value of the ind // another event which affects the ind variable // and another one – after this event we call our function // there’s […]