32 lines
840 B
HTML
32 lines
840 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Title</title>
|
||
|
<script>
|
||
|
window.addEventListener('load', () => {
|
||
|
setTimeout(() => {
|
||
|
app.setTitle('测试标题')
|
||
|
alert('test')
|
||
|
app.setSize(1200, 400, "fixed")
|
||
|
setTimeout(() => {
|
||
|
setTestOK(true)
|
||
|
app.close()
|
||
|
}, 1000)
|
||
|
}, 1000)
|
||
|
})
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<img src="logo.png" width="20"
|
||
|
onclick="showDialog('', ['No', 'Yes'], [{hint:'aaa',value:111},{hint:'bbb',value:222}]).then(v=>{console.info(v)})" />
|
||
|
<h1>Hello, world!</h1>
|
||
|
<br />
|
||
|
<button onclick="app.close()">关闭</button>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|