提交 f86d6b82 编写于 作者: 葛亚芳

fixed e490a925 from https://gitee.com/ge-yafang/docs/pulls/5155

update en/application-dev/reference/apis/js-apis-webgl2.md.
Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 59a34a05
......@@ -13,7 +13,8 @@ This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set
Create a **<canvas\>** component in the HML file. The following is an example:
```
```html
<!--xxx.hml-->
<div class="container">
<canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas>
<button class="btn-button" onclick="BtnDraw2D">BtnDraw2D</button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册