29 lines
741 B
HTML
29 lines
741 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="zh">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>webRTC</title>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div>
|
||
|
<h1>Entanglement</h1>
|
||
|
<p>同步</p>
|
||
|
</div>
|
||
|
<script type="module">
|
||
|
import Entanglement from './entanglement.js'
|
||
|
const entanglement = new Entanglement({ options: {}, server: {} })
|
||
|
entanglement.set('json', {
|
||
|
users: { name: 'users', list: [{ name: 'satori' }] },
|
||
|
music: { name: 'music', list: [{ name: 'satori' }] },
|
||
|
image: { name: 'image', list: [{ name: 'satori' }] }
|
||
|
})
|
||
|
const store = entanglement.get('json')
|
||
|
store.users.name = 'koishi'
|
||
|
//users.list.push({ name: 'koishi' })
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
</html>
|