From 703b098d4153c3376364afd4faa969743f107219 Mon Sep 17 00:00:00 2001 From: lhcpig Date: Thu, 15 Dec 2016 17:36:10 +0800 Subject: [PATCH] Update mixins.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改示例代码,保证输出一致 --- src/v2/guide/mixins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2/guide/mixins.md b/src/v2/guide/mixins.md index a582d71ca..71d92bdcc 100644 --- a/src/v2/guide/mixins.md +++ b/src/v2/guide/mixins.md @@ -38,14 +38,14 @@ var component = new Component() // -> "hello from mixin!" ``` js var mixin = { created: function () { - console.log('mixin hook called') + console.log('混合对象的钩子被调用') } } new Vue({ mixins: [mixin], created: function () { - console.log('component hook called') + console.log('组件钩子被调用') } })