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.
我需要一个在页面完全加载(文本、图像等)时调用的函数。
我注意到$(window).load()现在已弃用。那么,我应该使用什么?
$(window).load()
如果您只想避免使用该load功能,请使用通用on功能:
load
on
$(window).on('load', function(){ // insert code here });