Home  >  Article  >  Web Front-end  >  Vue.js2.0 changes summary sharing

Vue.js2.0 changes summary sharing

小云云
小云云Original
2018-01-20 17:22:361149browse

Some friends feel that Vue updates too quickly, causing the knowledge taught in the course to be inconsistent with the current Vue version, thus reporting errors. This article mainly shares with you a summary of the changes in Vue.js2.0, hoping to help everyone.

1. Regarding $index in Vue, getting the index value has been cancelled. It is mostly used for operations on multiple elements, like li in ul. Multiple li's are created through v-for. If for one of them or For some li operations, you need to use the index value. The usage is as follows;



This is a fragment I built myself, focusing on the use of index.

Related recommendations:

Vue2.0 setting global style instance sharing

Vue2.0, ElementUI realizes table page turning

Value passing problem of VUE2.0 component

The above is the detailed content of Vue.js2.0 changes summary sharing. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn