Javascript Sharepoint。“显示列表项版本历史记录”对话框

Javascript Sharepoint。“显示列表项版本历史记录”对话框,javascript,.net,sharepoint-2010,sharepoint-api,Javascript,.net,Sharepoint 2010,Sharepoint Api,我有自定义页面和列表项的id。如何从我的页面显示sharepoint版本历史记录对话框?版本历史记录页面的url格式为: http://<Server>/<WebUrl>/_layouts/versions.aspx?list=<ListID>&ID=<ItemId>&FileName<ServerRelativeFileUrl> http:////_layouts/versions.aspx?list=&ID=&Fi

我有自定义页面和列表项的id。如何从我的页面显示sharepoint版本历史记录对话框?

版本历史记录页面的url格式为:

http://<Server>/<WebUrl>/_layouts/versions.aspx?list=<ListID>&ID=<ItemId>&FileName<ServerRelativeFileUrl>
http:////_layouts/versions.aspx?list=&ID=&FileName
使用SharePoint客户端API在对话框中打开页面:

var options = SP.UI.$create_DialogOptions();
options.width = 500;
options.height = 250;
options.url = <url>;

SP.UI.ModalDialog.showModalDialog(options);
var options=SP.UI.$create_DialogOptions();
选项宽度=500;
options.height=250;
options.url=;
SP.UI.ModalDialog.showModalDialog(选项);
对于更详细的示例,您应该提供更多的上下文(您的代码是在服务器上运行还是在客户机上运行;到目前为止您有哪些代码;等等)