window-open-demo/src/windows.ts
2025-07-16 00:34:09 +08:00

19 lines
353 B
TypeScript

import { Webview } from "@webview/webview";
const html = `
<html>
<body>
<h1>Hello from deno v${Deno.version.deno}</h1>
</body>
</html>
`;
const webview = new Webview();
webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
// webview.run();
// webview.navigate('https://kevisual.cn/root/center/');
webview.run();
// 不成熟