2020年4月26日

Vue http://eslint.org/docs/rules/no-trailing-spaces 报错问题

摘要: 安装了eslint之后报的格式错误!很烦!一直报错,我直接不使用eslint就行了! 项目里面config配置文件 > index.js文件 在config/index.js文件里把useEslint:true把 true改为false就解决了 阅读全文

posted @ 2020-04-26 10:11 左侧岚 阅读(1341) 评论(0) 推荐(0) 编辑

2020年4月24日

visual studio code 改成中文 查看 打开视图 资源管理器

摘要: ctrl + shift + x language packs 阅读全文

posted @ 2020-04-24 17:06 左侧岚 阅读(227) 评论(0) 推荐(0) 编辑

2020年4月23日

数组渲染 遍历重新生成一个新数组 使用async await请求接口

摘要: async getCourseExperimentList(id) { try { var res = await ajax.myGet( "/course/experiment/get?course_id=" + parseInt(id) ); var data = []; if (res.sta 阅读全文

posted @ 2020-04-23 10:20 左侧岚 阅读(369) 评论(0) 推荐(0) 编辑

React 使用link在url添加参数(url中不可见)

摘要: 1. 在要跳转页面添加<Link to={{ pathname: `/staffManagement/cardRecord`, state: {time: YYYY-MM-dd, name: staffName} }}>text </Link> 2. 在跳转到的页面使用 this.props.loc 阅读全文

posted @ 2020-04-23 10:17 左侧岚 阅读(672) 评论(0) 推荐(0) 编辑

React 父调子 子调父 observer.js 非父子传值

摘要: https://www.cnblogs.com/universe-cosmo/p/10969351.html https://www.cnblogs.com/jokehl/p/9998163.html 16.3.0之前的设置方法为 //子组件 var HelloMessage = React.cre 阅读全文

posted @ 2020-04-23 10:16 左侧岚 阅读(479) 评论(0) 推荐(0) 编辑

2020年4月22日

echarts 折线图

摘要: option = { title: { text: '动态数据', subtext: '纯属虚构' }, tooltip: { trigger: 'axis', axisPointer: { type: 'cross', label: { backgroundColor: '#283b56' } } 阅读全文

posted @ 2020-04-22 15:43 左侧岚 阅读(407) 评论(0) 推荐(0) 编辑

跳转新页面解决用户重新登录的方法

摘要: https://www.cnblogs.com/laogai/p/4665023.html 1、获取用户登录接口那块 把接口返回的用户名保存到cookie里 2、用户名输入账号密码 登录提交方法那块做个判断 如果cookie中有账号密码 直接获取cookie中的账号密码 直接跳转首页 这块要写死 如 阅读全文

posted @ 2020-04-22 15:25 左侧岚 阅读(1008) 评论(0) 推荐(0) 编辑

2020年4月20日

微信小程序规范 引入框架 引入外部js css

摘要: 多写一个 , 都报错 阅读全文

posted @ 2020-04-20 16:51 左侧岚 阅读(371) 评论(0) 推荐(0) 编辑

2020年4月19日

js 400

摘要: 请求格式不被支持 阅读全文

posted @ 2020-04-19 22:06 左侧岚 阅读(80) 评论(0) 推荐(0) 编辑

2020年4月15日

Angular2 表单校验

摘要: Angular2 表单校验 阅读全文

posted @ 2020-04-15 16:23 左侧岚 阅读(143) 评论(0) 推荐(0) 编辑

导航