2021年12月29日
摘要: 1 .login-main { 2 /*圆角效果*/ 3 border-radius: 50px; 4 -webkit-border-radius: 25px; 5 -moz-border-radius: 25px; 6 /*阴影效果*/ 7 filter:progid:DXImageTransfo 阅读全文
posted @ 2021-12-29 11:02 小鬼-XX 阅读(174) 评论(0) 推荐(0) 编辑
  2021年9月26日
摘要: //判断 recommend对象数组中的describe是否含有5 var flag=recommend.some(item=>item.describe=='5'); 数组合并 a.concat(b) 阅读全文
posted @ 2021-09-26 14:55 小鬼-XX 阅读(5056) 评论(0) 推荐(0) 编辑
摘要: //去除数组中空对象 function distinctArrObj(arr) { var MyShow=(typeof arr!="object")? [arr] : arr //确保参数总是数组 for (let i = 0; i < MyShow.length; i++) { if (MySh 阅读全文
posted @ 2021-09-26 14:49 小鬼-XX 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: //根据含有对象的数组中某一个属性进行排序 const handle=(property)=>{ return function (a,b) { const a1=a[property]; const b1=b[property]; return a1-b1; } } var myHtmlSort 阅读全文
posted @ 2021-09-26 14:48 小鬼-XX 阅读(76) 评论(0) 推荐(0) 编辑
  2020年7月8日
摘要: 1.安装地图插件 npm i vue-baidu-map --save 2.在项目的main.js中引入地图 import BaiduMap from 'vue-baidu-map'; Vue.use(BaiduMap, { /* Visit http://lbsyun.baidu.com/apic 阅读全文
posted @ 2020-07-08 10:34 小鬼-XX 阅读(2220) 评论(0) 推荐(1) 编辑
摘要: 1.安装组件 npm install v-distpicker --save 2.在想使用插件的页面引入 import VDistpicker from 'v-distpicker' export default { components: { VDistpicker } } 3.直接在想用的界面使 阅读全文
posted @ 2020-07-08 10:10 小鬼-XX 阅读(412) 评论(0) 推荐(0) 编辑
  2020年7月6日
摘要: 前端展示需要把字段都显示在tooltip里,需要用到formatter格式器。这个地方的数据入口在series的data里,我们只需要处理一下放入data里面的数据格式即可。 1.首先我们在vue data里面声明一个数组: data() { return { resdata: [] } }, 2. 阅读全文
posted @ 2020-07-06 11:15 小鬼-XX 阅读(4390) 评论(0) 推荐(1) 编辑
  2020年6月29日
摘要: import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' Vue.config.productionTip = false; //配置全局cs 阅读全文
posted @ 2020-06-29 11:08 小鬼-XX 阅读(4195) 评论(0) 推荐(0) 编辑
  2020年6月24日
摘要: 1.生成实体类 2.生成JSON数据格式的方法 //存返回数据 List<Menus> totaltype = new ArrayList<>(); //使用map来装前面查到的所有数据 Map<Integer, Menus> map = new HashMap<>(); for (Menus p: 阅读全文
posted @ 2020-06-24 11:27 小鬼-XX 阅读(897) 评论(0) 推荐(0) 编辑
  2020年6月18日
摘要: 1.找到项目中config->index.js,然后找到配置文件中的proxyTable如下图: proxyTable: { '/api': { target: 'http://localhost:8090/', //你要跨域的网址 比如 'http://news.baidu.com', // se 阅读全文
posted @ 2020-06-18 16:38 小鬼-XX 阅读(4202) 评论(0) 推荐(1) 编辑