Home > SYS_Window > open
SYS_Window.open() method
Open a resource window
Signature
typescript
function open(url: string, target?: ESYS_WindowOpenTarget): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
url | string | URL or path of the resource to load |
target | (Optional) Context target |
Returns
void
Example
javascript
// 1. 在新标签页打开目标地址(同步方法,无返回值)
eda.sys_Window.open('http://localhost:49620/health', '_blank');
// 2. 打开的标签页由用户自行关闭
console.log('已在新标签页打开资源窗口');1
2
3
4
5
2
3
4
5