Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法编写 javascript 代码而不使用load()函数和 jquery.ready()来执行 javascript 代码?如果是,那么我们该怎么做?请提供此类代码的一些教程链接。
load()
.ready()
是的,但你为什么要这样做?将您的脚本放在结束标记之前的底部</body>,您不需要使用document.ready().
</body>
document.ready()
链接: