上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: public static void main(String[] args) throws IOException { Map<String,byte[]> map=new HashMap<>(); map.put("application.properties",getBytes(new File 阅读全文
posted @ 2021-08-16 22:05 白羽轻飘 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 1//创建组件的构造器 var firstCPN= Vue.extend({ template:`<h2>我是组件</h2>` }); //注册组件 Vue.component('mycpn',firstCPN);注册的是全局的组件,全局的组件可以在多个vue实例下使用 //使用组件 2 注册局部的 阅读全文
posted @ 2020-08-19 21:28 白羽轻飘 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 1 assign方法跳转到指定的url 2 reload重新加载当前的页面,参数为true表示:强制从服务器重新加载页面 2 replace用新的url替换,可以避免后退 history对象使window对象下面的属性,window对象是整个浏览器,作用:保存用户的上网记录 history.leng 阅读全文
posted @ 2020-03-17 18:28 白羽轻飘 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 indexof(要查找的元素,开始查找的位置) 2 forEach:遍历数组,数组.forEach(function(item,index,array){ item:当前遍历的元素 index:当前遍历到的索引 array:当前的数组 }) 3 map方法:操作数组中的每一个元素并返回新的数组 阅读全文
posted @ 2020-03-12 21:02 白羽轻飘 阅读(196) 评论(0) 推荐(0) 编辑
摘要: //冒泡排序 var arr=[9,8,7,6,5,4]; for (var i = 0; i < arr.length; i++) {//控制比较的轮数 //每一轮比较的次数元素的个数减去当前是第几轮 for (var j = 0; j < arr.length-i-1; j++) { if(ar 阅读全文
posted @ 2020-03-09 21:34 白羽轻飘 阅读(5414) 评论(0) 推荐(0) 编辑
摘要: 1 首先将spring依赖的包全部导入 2 建立测试接口 3 具体的类实现接口 4 创建配置类 5 建立测试: 6 结果: 测试通过 阅读全文
posted @ 2019-09-10 20:37 白羽轻飘 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1 借鉴这篇文章 https://www.cnblogs.com/zuowj/p/8440902.html 阅读全文
posted @ 2019-08-28 16:00 白羽轻飘 阅读(3039) 评论(0) 推荐(0) 编辑
摘要: 1 将java对象类转成json格式 首先引入依赖jar文件 注意依赖文件的版本号,高版本可能没有对应的类 2 我的实体类中包含内部类注意内部类要public才能被序列化成json格式 3 导入包文件 import net.sf.json.JSONArray;import net.sf.json.J 阅读全文
posted @ 2019-08-28 14:01 白羽轻飘 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 2 拿到api返回的json格式之后使用newtonsoft来反序列化 阅读全文
posted @ 2019-08-23 11:38 白羽轻飘 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: //要被分数组string[] arr = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" }; List<List<string>> data = new List<List<string>>(); int group = 6;//分成 阅读全文
posted @ 2019-08-21 14:07 白羽轻飘 阅读(5684) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页