获取 GridWeb 发布版或版本
Contents
[
Hide
]
请使用 Aspose.Cells.GridWeb.GridWeb.GetVersion() 方法来获取 Aspose.Cells.GridWeb 的发布或运行版本。这个版本将帮助您通过代码在运行时找到 GridWeb 的版本。
获取 Aspose.Cells.GridWeb 的发布或运行版本
以下示例代码会找到 Aspose.Cells.GridWeb 的运行版本,并在 ASP.NET 标签控件上打印出来。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Find version of GridWeb and display in label. | |
string version = Aspose.Cells.GridWeb.GridWeb.GetVersion(); | |
Label1.Text = "GridWeb Version: " + version; |
查找 GridWeb 客户端脚本文件的版本号
您也可以找到 acwmain.js 的版本号,这是 GridWeb 的客户端脚本文件。它包含一个名为 acw_version 的变量,该变量保存了 acwmain.js 文件的版本号。您可以像这样在控制台上打印出 acwmain.js 文件的版本号。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
function GetVersion() | |
{ | |
alert(acw_version); | |
console.log(acw_version); | |
return false; | |
} |