Fork me on GitHub
摘要: 1、router-link 方式【实现跳转最简单的方法】 <router-link to='需要跳转到的页面的路径> 如: <div id="index"> <router-link to="/home">首页</router-link> <router-link :to="{name: 'home 阅读全文
posted @ 2020-11-04 13:23 xxzhang1437 阅读(5357) 评论(0) 推荐(0)
摘要: 如下代码:点击的时候会激活,绑定样式。 <template> <div> <ul> <li v-for="(user,index) in userlist" :key="index" @click="handleClick(index)" :class="{active:currentIndex== 阅读全文
posted @ 2020-11-04 12:51 xxzhang1437 阅读(211) 评论(0) 推荐(0)
摘要: 父组件 food 通过 props 把 值为 0 的 type 字段传给子组件,子组件在初始化时可以拿到 type 字段,渲染出字符“0 水果”// 父组件 food.vue <template> <apple :type="type"></apple> </template> <script> d 阅读全文
posted @ 2020-09-14 14:31 xxzhang1437 阅读(177) 评论(0) 推荐(0)
摘要: JavaScript中可以在某个元素前使用 '+' 号,这个操作是将该元素转换成Number类型,如果转换失败,那么将得到 NaN, +new Date() 将会调用 Date.prototype 上的 valueOf() 方法, 根据MDN,Date.prototype.value方法等同于Dat 阅读全文
posted @ 2020-09-14 14:19 xxzhang1437 阅读(889) 评论(0) 推荐(0)
摘要: 颜色定义变化旧版本 : HSSFColor.BLACK.index新版本 : IndexedColors.BLACK.index 获取单元格格式旧版本 : cell.getCellType 与之应对的单元格格式 HSSFCell.CELL_TYPE_BLANK新版本 : cell.getCellTy 阅读全文
posted @ 2020-09-14 14:15 xxzhang1437 阅读(578) 评论(0) 推荐(0)
摘要: 如下代码:v-model绑定的值必须是字符串1,才会显示默认选中对应“黄金糕”,如果是数字1,则显示1 所以v-model里面的数据和遍历出来value值数据类型必须一样。 <template> <el-select v-model="value" placeholder="请选择"> <el-op 阅读全文
posted @ 2020-09-10 16:10 xxzhang1437 阅读(996) 评论(0) 推荐(0)
摘要: 报错信息:A Java Runtime Environment (JRE) or Java Development Kit(JDK) must be available in order to run Eclipse. No Java virtualmachine was found after s 阅读全文
posted @ 2020-09-10 15:58 xxzhang1437 阅读(95) 评论(0) 推荐(0)