VueJS:从孩子那里调用父方法

时间:2017-06-14 10:08:29

标签: vue.js vuejs2 vue-component

@font-face {
    font-family: 'BrandonText';
    src:  url('/fonts/BrandonText-Thin.eot?#iefix') format('embedded-opentype'),
          url('/fonts/BrandonText-Thin.otf')  format('opentype'),
          url('/fonts/BrandonText-Thin.woff') format('woff'),
          url('/fonts/BrandonText-Thin.ttf')  format('truetype'),
          url('/fonts/BrandonText-Thin.svg#BrandonText-Thin') format('svg');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonTextItalic';
    src:  url('/fonts/BrandonText-Thin.eot?#iefix') format('embedded-opentype'),
          url('/fonts/BrandonText-Thin.otf')  format('opentype'),
          url('/fonts/BrandonText-Thin.woff') format('woff'),
          url('/fonts/BrandonText-Thin.ttf')  format('truetype'),
          url('/fonts/BrandonText-Thin.svg#BrandonText-Thin') format('svg');
    font-weight: 100;
    font-style: italic;
}

如何致电var CompA = { ... methods: { parentMethod(){ } } } var CompB = { extends: CompA, ... render(h) { return this.parentMethod(); } } ?它不适用于parentMethod范围。

0 个答案:

没有答案