SharePoint JavaScript报 Uncaught TypeError: Cannot read property 'showModalDialog' of undefined 的解决方法

 

问题描述:在sharepoint 原生的UI在chorme中无法弹出对话框,js 提示Cannot read property 'showModalDialog' of undefined。

 

解决方法:

在页面布局页添加以下代码

<SharePointWebControls:ScriptLink ID="ScriptLink1" Name="sp.ui.dialog.js" LoadAfterUI="true" Localizable="false" runat="server"></SharePointWebControls:ScriptLink>
        

posted @ 2017-06-23 12:22  baoged  阅读(306)  评论(0编辑  收藏  举报