diff --git a/README-zh.md b/README-zh.md index 4d63d20..cde63f4 100644 --- a/README-zh.md +++ b/README-zh.md @@ -51,7 +51,7 @@ 然后可以使用 script 方式引入 umd 包,当然也可使用模块化方式 import。并且只有一个 API,使用如下: -``` +```js import CanvasNest from 'canvas-nest.js'; const config = { @@ -77,7 +77,7 @@ cn.destroy(); Example: -``` +```html ``` diff --git a/README.md b/README.md index 52c3d1d..442cd7f 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Or import the `umd` package use `script` tag. There is only one API, use it like: -``` +```js import CanvasNest from 'canvas-nest.js'; const config = {