[英]JQuery Dialog document ready
When will $(document).ready()
run if it is placed in a separate view which is loaded as a part of dialog control? 如果将
$(document).ready()
放置在作为对话框控件一部分加载的单独视图中,何时运行? Will it follow the pattern of running after the view is fully loaded inside the dialog called by the parent page? 在父页面调用的对话框中完全加载视图之后,它会遵循运行模式吗?
$(document).ready method means to run any javascript only after DOM (Document Object Model / All the elements of page) loaded successfully. $(document).ready方法意味着仅在成功加载DOM(文档对象模型/页面的所有元素)后才运行任何JavaScript。
So logically when you'll put any javascript code under $(document).ready() it'll run after all the elements of page will load. 因此,从逻辑上讲,当您将任何JavaScript代码放在$(document).ready()下时,它将在页面的所有元素加载后运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.