- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 vue3 批量导入组件/ elemelt-plus自定义icon图标
目录结构如下://index.ts 文件//一般引入 /* import Coupons from "./components/coupons.vue";Coupons,Overview,Report,Ticket,*/ //改成批量导入 import {//vite 构建 const Files = import . meta . glob("./components/*.vue");
2023-06-16 13:59:21
637
1
原创 angular7 转场动画 Error: Unable to process animations due to the following failed trigger transitions
这个错误是由项目首次打开时,enter/leave时找不到元素而报的一个错误。目前还没找到解决办法。但对运行还是无关紧要的。ERROR Error: Unable to process animations due to the following failed trigger transitions@routeAnimations has failed due to:query(":l...
2019-05-24 10:35:35
846
1
原创 angulr7 结合 material UI 权限树
由于在angular中引入了material UI 又不想引入zTree。所以就自己写了个checkbox的权限树;写得不好的地方请大家多多指教。项目中还有其它方法,直接拷贝了。多余的可自行删除:注:记得在app.module.ts中引入material相关组件;import:中的没有自行删除JavaScript代码:import {CdkTreeModule} from ‘@angul...
2019-05-11 17:55:26
579
原创 node对mongodb的查询操作返回指定字段
在网上查了好久都没找到相关的文章,还好自己去查了下node操作mongodb文档,现在分享给有需要的学者;顺便记录下例:const mongoClient = require(‘mongodb’).MongoClient;let url = “mongodb://localhost:27017/student”;mongoClient.connect(url, { useNewUrlPar...
2019-04-26 16:01:38
3416
2
原创 echarts的折线图中添加一条警戒线
如下图:模拟后台数据:var reg_data ={datas: [{desccode: “EfficiencyGraph”, yield: “97”, y: “81”, description: “08:00-09:00”, x: “1”},{desccode: “EfficiencyGraph”, yield: “97”, y: “99.67”, description: “09:00...
2019-01-02 15:06:08
16317
4
原创 关于获取文本宽度的问题
记录下,当时只是为了给表格动态加载表格的宽度去做的。没想到还挺有用的。做法很简单。根据你传过来的串的长短返回其对应的宽度;function getTextWidth(arr,fontSize) {if(!Array.isArray(arr)){return []};fontSize = fontSize || 12;var widthList = [];for(var i = 0; ...
2018-12-14 17:26:34
1350
原创 spring+springMvc使用maven构建的javaweb项目部署到tomcat时无法获取数据
在myeclipse上运行正常打包部署到tomcat时页面能正常显示;获取数据时报404错误项目构建:spring+springMvc+mybatis+mysql+maven+angular6找个GG帮忙看下哪出错了tomcat错误日志如下:22-Nov-2018 19:54:08.285 INFO [localhost-startStop-1] org.apache.catalina....
2018-11-22 21:09:08
345
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人