Fork me on GitHub
摘要: 父组件 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)