What is the difference between vue and the two ways to create components?

I always use the first one, but I haven"t used the second one. Which one is better?

var Python={
      template:"-sharppython"
}
var Python=Vue.extend({
      template:"-sharppython"
})
Mar.30,2021

same, all are vue components, generic


this is a locally registered component
var Python= {

  template:"-sharppython"

}

this is the global registration component
var Python=Vue.extend ({

)
  template:"-sharppython"

})

the difference is that global registration is applicable to all places, while local registration is only available on the registration page

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38670-2c0f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38670-2c0f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?