Skip to content

Commit

Permalink
Merge pull request #192 from lhcpig/patch-1
Browse files Browse the repository at this point in the history
Update mixins.md
  • Loading branch information
Jinjiang authored Dec 16, 2016
2 parents 19d2e2c + 703b098 commit e31cb2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/guide/mixins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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('组件钩子被调用')
}
})

Expand Down

0 comments on commit e31cb2d

Please sign in to comment.