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

相关文章:

  • 2021-12-06
  • 2021-09-17
  • 2022-12-23
  • 2021-12-29
  • 2021-11-16
  • 2021-12-04
  • 2021-09-25
  • 2022-01-09
猜你喜欢
  • 2022-02-06
  • 2021-06-19
  • 2022-12-23
  • 2021-08-02
  • 2021-07-28
  • 2021-06-08
  • 2021-06-08
相关资源
相似解决方案