text: kbone canvas testing

This commit is contained in:
dntzhang 2019-08-20 10:12:45 +08:00
parent 365e2222bf
commit b9ea8fa2e9
1 changed files with 6 additions and 1 deletions

View File

@ -1,11 +1,16 @@
import { render, h } from 'omis'
const Comp = <canvas ref="canvas" class="canvas" ref="canvas" canvas-id="canvas" width="300" height="200"></canvas>
export default function createApp() {
const container = document.createElement('div')
container.id = 'app'
document.body.appendChild(container)
render(<div >我是log页面</div>, '#app')
render(<div >
<h1>我是log页面</h1>
<canvas class="canvas" canvas-id="canvas" width="300" height="200"></canvas>
</div>, '#app')
}
"undefined" != typeof wx && wx.getSystemInfoSync || createApp()