原来的是 v-for="person in items" v-on:click="deletePerson($index)"//这个仅仅适用于1.0版本,不要采坑了同学们 这个在Vue1.0版本中式适用的可以直接使用$index,但是在2.0是不适合的 在Vue 2.0版本中获取索引我们需要通过 v-for = "(person ,index) in items ", 点击事件我们也不能使用$index,应该使用...
今天学习Vue中遇到了一个报错信息:$index is not defined,是我写了个for循环在HTML中,然后是因为版本的问题 下面是解决方法: 原来的是 v-for=”person in items” v-on:click=”deletePerson($index)”//这个仅仅适用于1.0版本,不要采坑了同学们
在index.html引入了bimface的js 页面中mounted()方法中开始使用, 但是提示'BimfaceSDKLoaderConfig' is not defined // import BimFace from '@/utils/BimfaceSDKLoader.js' export default { data () { return { viewer3D: '', app: '', viewToken: '275817bfced440d88081c52c6ae32c67' } }, created...
1、引入css <!-- import CSS --> 1. 2.2、引入js <!-- import Vue before Element --> <!-- import JavaScript --> 1. 2. 3. 4.3、编写html <el-button @click="visible = true">Button</el-button> <el-dialog :visible.sync="visible" title="Hello world"> Try Element </el-...
在index.html中引用百度地图的script,【<script type="text/javascript" src="[链接]我的ak"></script>】