提交 a3c407f6 编写于 作者: E ester.zhou

update docs

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 5a9bb178
......@@ -169,9 +169,9 @@ Publishes a common event with given attributes. This method uses a callback to r
```js
// Attributes of a common event.
var options = {
code: 0; // Result code of the common event
data: "initial data";// Result data of the common event
isOrdered: true; // The common event is an ordered one.
code: 0, // Result code of the common event
data: "initial data",// Result data of the common event
isOrdered: true // The common event is an ordered one.
}
// Callback for common event publication
function PublishCallBack(err) {
......
......@@ -89,7 +89,7 @@
export default {
onShow(){
const el =this.$refs.canvas
var ctx = this.$element('drawImage').getContext('2d');
var ctx =el.getContext('2d');
var img = new Image();
img.src = 'common/images/example.jpg';
img.onload = function() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册