Vue v2.0.0
Vue.set and Vue.delete is now also exposed on Vue instances as this.$set and this.$delete.Note this is different from the 1.x counterparts: they are simply aliases to the global API.This change eliminates the need to import/require Vue just to access these two methods, and makes it easier to pre-compile standalone Vue components.
页:
[1]