在页面加载完毕最后再执行某js方法 遇到一个的项目,需要在页面加载数据生成节点完后执行一个方法,记录一下 <script> document.onreadystatechange = function () { if (document.readyState == "complete") { $(