![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码块
xxp_style
这个作者很懒,什么都没留下…
展开
-
js常用代码块
一、数组操作 //取出数组中的元素 let code = '001'; const obj = this.cityList.find(item => { return item.cityCode === code; }); //取出数组中的单个属性 let citys = this.cityList.map(item => item.cityName).toString(); ...原创 2019-09-03 10:23:37 · 141 阅读 · 0 评论 -
js数组遍历
基础for循环 //for let arr = [{id: 1, name: '男'}, {id: 2, name: '女'}]; for (let i = 0, len = arr.length; i < len; i++) { console.log(i); // 0 1 con...原创 2019-08-25 13:27:27 · 100 阅读 · 0 评论 -
java常用代码块
一、数组操作 //数组中获取一列的数据 List<String> nameList = userList.stream().map(SysUser::getUserName).collect(Collectors.toList()); //按指定字段排序 Collections.sort(userList, new Comparator<SysUser>() { ...原创 2019-09-03 09:52:58 · 106 阅读 · 0 评论 -
bug专辑
1、解决端口被占用的问题 //查看占用8080端口的进程 netstat -ano|findstr 8080 //终止改进程 taskkill /f /t /im 19644原创 2019-09-03 10:13:23 · 133 阅读 · 0 评论 -
vue使用相关总结
一、前期准备 1.Node.js 安装 https://nodejs.org/download/release/v8.9.4/ 2.一些相关的dos命令 #查看 版本 node -v npm -v 安装淘宝镜像加速npm npm install -g cnpm --registry=http://registry.npm.taobao.org 使用cnpm来替代npm cnpm i...原创 2019-08-25 21:35:26 · 99 阅读 · 0 评论 -
实现vue项目与web后台进行数据交互
前期工具准备 安装下载Node:https://nodejs.org/en/ vue管理系统:https://github.com/xxpstyle/vue doc命令: 查看node版本:node -v 查看npm版本:npm -v 安装cnpm的淘宝镜像:npm install -g cnpm --registry=http://registry.npm.taobao.org ...原创 2018-05-27 12:20:15 · 29464 阅读 · 0 评论