摘要: 实现柱状图渐变或柱状图为不规则形状的图片 import React from 'react' import Highcharts from 'highcharts'; import HighchartsReact from 'highcharts-react-official'; import Hi 阅读全文
posted @ 2020-11-27 17:18 李里ly 阅读(762) 评论(0) 推荐(0) 编辑
摘要: react项目兼容ie npm install react-app-polyfill --save 在入口文件(index.js)顶部引入 import "react-app-polyfill/ie11"; import "react-app-polyfill/stable"; package.js 阅读全文
posted @ 2020-11-19 14:00 李里ly 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 苹果手机不识别2020-07-30格式的日期 问题: 日期转换时间戳,在苹果真机上会解析为NaN Date.parse(2020-7-30 00:00:00) 解决方案: 日期格式不能为 - - - 的形式,将 - - - 替换为 / / / 的日期格式 如:2020-07-30 转换为 2020/ 阅读全文
posted @ 2020-11-19 13:59 李里ly 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 打开Visual Studio Code, 依次打开: 英文版:File --> Preformences --> Settings 中文版:文件 --> 首选项 --> 设置 然后输入搜索 Editor: Column Selection,取消选中 结果对比: 阅读全文
posted @ 2020-10-26 17:57 李里ly 阅读(3633) 评论(0) 推荐(1) 编辑
摘要: 打开Visual Studio Code, 依次打开: 英文版:File --> Preformences --> Settings 中文版:文件 --> 首选项 --> 设置 然后输入搜索 workbench > tree, 阅读全文
posted @ 2020-10-26 17:44 李里ly 阅读(2804) 评论(0) 推荐(1) 编辑
摘要: react项目中自己写了一个装饰器,运行的时候发现报错 Support for the experimental syntax 'decorators-legacy' isn't currently enabled 这是因为我们么有装支持装饰器的组件 Support for the experime 阅读全文
posted @ 2020-09-21 10:19 李里ly 阅读(2110) 评论(0) 推荐(0) 编辑
摘要: vue 父组件向子组件传值:props传值 // 父组件 import son from './son.vue'; export default { component: { son }, data() { return { msg: '这是消息' } } } <template> <div>父组件 阅读全文
posted @ 2020-05-25 22:33 李里ly 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 苹果IOS系统解决微信内置浏览器打开字体变大问题的方法: 1 2 3 4 5 body { /* IOS禁止微信调整字体大小 */ -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; -moz-t 阅读全文
posted @ 2020-05-18 18:08 李里ly 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Vue I18n 是 Vue.js 的国际化插件,可以轻松地将一些本地化功能集成到 Vue.js 应用程序中。 此篇文章主要了解:国际化多语言 首先,vue-i18n作为依赖安装 在入口文件main.js中,引用vue-i18n并配置内容 new Vue({ el: '#app', i18n, st 阅读全文
posted @ 2019-08-08 15:17 李里ly 阅读(2167) 评论(1) 推荐(0) 编辑
摘要: Polyfill 用来为旧浏览器提供它没有原生支持的较新的功能。 ie9和一些低版本的高级浏览器对es6新语法并不支持 导致 页面在ie浏览器不能正常展示,显示空白 babel提供了polyfill依赖,用来解决这一问题,方法如下: 首先安装依赖: npm install --save @babel 阅读全文
posted @ 2019-08-05 11:36 李里ly 阅读(1963) 评论(0) 推荐(0) 编辑