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>