唯一ID?
This commit is contained in:
30
demo.html
30
demo.html
@@ -1,30 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>DEMO</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module">
|
||||
import { musicStore, chatStore } from './src/store.js'
|
||||
|
||||
console.log(musicStore.name)
|
||||
console.log(chatStore.name)
|
||||
|
||||
// 检查过期的消息自动销毁
|
||||
// 查询消息列表
|
||||
|
||||
const element = document.createElement('div')
|
||||
element.innerHTML = `
|
||||
<h1>DEMO</h1>
|
||||
<h2>音乐</h2>
|
||||
<div id="music">${musicStore.name}</div>
|
||||
<h2>聊天</h2>
|
||||
<div id="chat">${chatStore.name}</div>
|
||||
`
|
||||
document.body.appendChild(element)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user