ReferenceError: documentGetElementsByName 未定义 MoveSiteTitle();
ReferenceError: MoveSiteTitle 未定义
MoveSiteTitle();
任何帮助......!
最佳答案
好吧,正如 df1 所报告的那样,这似乎是一个与 Chrome 相关的问题。但是,如果您愿意,有一种解决方案可以消除脚本错误。
将这段代码放在母版页中 s4-workspace 标签或类似标签的上方:
if(typeof documentGetElementsByName==='undefined')
{
documentGetElementsByName = function(value){
if($('[name="'+value+'"]'))
{
return $('[name="'+value+'"]');
}
return null;
};
}
if(typeof MoveSiteTitle==='undefined')
{
// Well.... Don't know what this function is supposed to do
// but this way I am avoiding script error...
MoveSiteTitle = function(value){
return "";
};
}
关于SharePoint 错误 movesiteTitle() 每当页面加载后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12870678/