Home > SYS_Environment > getEditorCurrentVersion
SYS_Environment.getEditorCurrentVersion() method
Get the current version of the editor
Signature
typescript
function getEditorCurrentVersion(onlySemantic?: boolean): string;1
Parameters
Parameter | Type | Description |
|---|---|---|
onlySemantic | boolean | (Optional) Whether to only return the semantic version number. ADD since EDA v3.2.176, ADD since EDA v4.1.13 |
Returns
string
Current version of the editor
Example
javascript
// 1. 读取编辑器版本号(同步返回字符串)
const version = eda.sys_Environment.getEditorCurrentVersion();
// 2. 输出版本号(如 2.2.36,具体以当前环境为准)
console.log('编辑器当前版本:', version);1
2
3
4
5
2
3
4
5