Export Syntax of es6

  node.js, question

In learning vue, I don’t know es6 very well. When seeing the function of vue components, demo saw this sentence:

export default{
 data(){
 return {
 Msg:' Data'
 bracket
 },
 components: {
 bracket
 bracket

My understanding is that this is a module, export export, export is an object, the object has a components attribute, now do not understand this paragraph

data(){
 return {
 Msg:' Data'
 bracket
 bracket

Who will help es6 friends explain what this means and what knowledge points es6 has

Short for ES6 method

See Ruan Yifeng’sECMAScript 6 Getting Started


ES6 writing

data () {
 return {
 Msg:' Data'
 bracket
 bracket

Equivalent to

data: function () {
 return {
 Msg:' Data'
 bracket
 bracket