我正在使用SP2010并且需要运行一些javascript代码来在页面加载时更新iframe。因此,我使用了以下方法_spBodyOnLoadFunctionNames.push(“myfunction”)来执行javascript函数。问题是页面加载(并加载原始的html / css元素),然后页面重新加载新更新的JavaScript代码。关于如何消除延迟的任何想法?感谢。
答案 0 :(得分:0)
http://vimleshtiwari.blogspot.com/2010/08/alternative-of-using.html
他通过在空白图像上调用“onload”而不是上面提到的函数来使用hack。