0
我看不出與Firefox 57的任何輸出,同時期待 'HyperHtmlElement' ......簡單HyperHtmlElement例子說明不了什麼
<html>
<head>
<title>canvas element test</title>
<meta charset='utf-8'>
</head>
<body>
<g2-canvas></g2-canvas>
<script src="https://unpkg.com/[email protected]/min.js"></script>
<script src="https://unpkg.com/[email protected]/min.js"></script>
<script>
class G2Canvas extends HyperHTMLElement {
created() {
console.log('#');
this.render();
}
render() {
return this.html`<strong>HyperHTMLElement</strong>`;
}
}
G2Canvas.define('g2-canvas');
</script>
</body>
</html>
...我究竟做錯了..?
謝謝。