SharePoint 2007 _spbodyonloadfunctionnames is undefined

SharePoint page library 中使用了html页面,html页面上面有JavaScriptJavaScript 本身 没有 错误,但是当打开这个html页面的时候JavaScript报错,错误信息为:_spbodyonloadfunctionnames is undefined。经过网上搜索找到的解决方案是在页面上添加SharePoint init.js引用。如下:

 <script type="text/javascript" language="javascript" src="/_layouts/1033/init.js?rev=VhAxGc3rkK79RM90tibDzw%3D%3D"></script>

参考链接

http://urenjoy.blogspot.com/2009/11/spbodyonloadfunctionnames-is-undefined.html

http://blogs.tamtam.nl/duarte/2008/09/04/Moss2007+SpBodyOnLoadFunctionNames+Undefined+Function.aspx

你可能感兴趣的:(SharePoint)