摘要: 目的:实现前后端分离,前端减少路径请求的所需的路由文件; 第一步:安装http代理中间件 第二步: express文件中(app.js)配置反向代理 解析:本地的请求地址是localhost:5000/login,当经过代理配置后,会将localhost:5000替换为http://192.166. 阅读全文
posted @ 2018-11-25 09:45 Zero_追梦 阅读(3690) 评论(0) 推荐(0) 编辑
摘要: 更多JS实战记录,请前往:https://www.yuque.com/smallwhy/yyvuqy JS // 禁用超链接元素elem ; document.getElementById(elemID).setAttribute('disabled', 'disabled'); // 启用超链接元 阅读全文
posted @ 2018-11-25 09:41 Zero_追梦 阅读(3538) 评论(0) 推荐(0) 编辑
摘要: 1. 安装echarts包、ngx echarts包 2. angular.json中引入echarts.js文件 3. 根模块中导入NgxEchartsModule模块 4. 组件中使用echarts图表 (1). HTML test.component.html (2). TS test.com 阅读全文
posted @ 2018-11-25 09:28 Zero_追梦 阅读(7927) 评论(0) 推荐(0) 编辑