super
は使えないのでFunction.prototype.call
で対処
import Parent from './parent'
export default {
name: 'child',
extends: Parent,
methods: {
kick () {
Parent.methods.kick.call(this);
}
}
}
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
super
は使えないのでFunction.prototype.call
で対処
import Parent from './parent'
export default {
name: 'child',
extends: Parent,
methods: {
kick () {
Parent.methods.kick.call(this);
}
}
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked