- 博客(71)
- 问答 (1)
- 收藏
- 关注
原创 【Java】实现 Http Server && 对象与 JSON的转换
Web 中 服务器 简单返回。object 和 json 的互相转化。如果记不清是哪个包,在maven repository里查找复制这个就可以然后pull json的包序列化:object -> json反序列化:json->object如果没有Person()无参构造,会报错。
2022-12-08 00:34:09
300
原创 1.通过 Windows Terminal来访问 Ubuntu 2.在 Windows 或 Ubuntu 里互相访问两边的文件
如何随时通过 Windows Terminal(就是通常那个黑底白字 or 绿字的命令界面)来访问 Ubuntu先cmd里输入wt,打开Windows Terminal如何在 Windows 或 Ubuntu 里互相访问两边的文件Ubuntu访问 Windows c盘Windows访问Ubuntu...
2022-04-09 16:38:24
1143
原创 java版Android前端+SpringBoot后端开发学习
使用Android Studio进行安卓开发学习,本人是为了完成毕设的开发,挑选部分重点和遇到的进行记录,欢迎一起学习啊
2022-03-15 19:32:36
9430
1
原创 政务系统 微信小程序 项目总结
消息推送需求:订阅长期消息通知。解决方式:1.在首页js的onload里写一个提示框,提示框的success里调用 wx.requestSubscribeMessage请求订阅。 onLoad: function (options) { wx.showModal({ title: '提示', content: '消息订阅请求', success: function(res) { if (res.confirm) { wx.req
2021-09-09 21:38:41
599
原创 微信小程序 设置全屏背景图片居中
<image class="backgroundImg" mode="widthFix" src=" " style="opacity:{{0.2}}"></image>.backgroundImg { top: 150px; width: 100%; overflow: hidden; position: absolute; }
2021-09-07 00:41:49
1012
原创 css 垂直居中
1.flex父元素设置flex,默认主轴从左向右,交叉轴方向上居中 display: flex; /* flex-direction: row; */ align-items: center; 如果交叉轴方向设置为end,那么就是这样:
2021-06-14 18:03:05
88
原创 css 设置页面与屏幕同样高度
因为html默认height为0所以如果要设置页面与屏幕同高,就要设置为height:100%,然后再将body的height也设置100%html,body{ height:100%}例子:html{ height: 100%;}body{ height: 100%; width: 100%; margin: 0; padding: 0; }.father{ height: 100%; width: 100%;
2021-06-14 16:47:40
4852
1
原创 微信小程序 云数据库中的字符串更改样式显示
使用富文本<rich-text nodes="{{active}}"></rich-text>{{active}}就是获取数据库的字段,在数据库的active字段中的数据写成普通的html格式:<div><p>这里是第一段</p><p>这里是第二段</p><img src="../images/image.jpg"></div>空格实体是 ...
2021-05-23 00:36:45
288
原创 微信小程序-swiper组件 轮播图
swiper组件 轮播图在wxml中加入swiper组件在wxss中设置swiper组件样式:图片消失的问题在wxml中加入swiper组件<view> <swiper> <swiper-item><image src="../../images/post/1.png"></image></swiper-item> <swiper-item><image src="../../images
2021-03-10 01:02:15
480
原创 Map按value大小排序
构件Map:HashMap map = new HashMap();map.put(1,4);map.put(2,1);排序:ArrayList list = new ArrayList(map.entrySet());list.sort(Map.Entry.comparingByValue());
2020-11-05 23:00:15
280
原创 打印输出到文件,从文件输入 ---java(复制粘贴直接用)
复制这两句就可以用了。PrintStream ps=new PrintStream(new FileOutputStream("work.txt")); System.setOut(ps); //文件输出System.out.println()中的内容都写在这个文件里。那如果还想知道为什么的话看看解释吧~解释:1.new FileOutputStream(“work.txt”):创建一个向"work.txt"表示的文件中写入数据的文件输出流。(可以想象成建了一条路)2.new Prin
2020-10-13 18:56:42
335
原创 【git】本地更新到github库
git initgit add .git commit -m'这里填文件名'git push -u origin master
2020-10-09 02:11:26
132
原创 java实现进制转换
public String tran(int num,int index) { StringBuilder number = new StringBuilder(); while(num>0){ number.append(num%index); num=num/index; } return number.reverse().toString(); }
2020-08-03 15:06:28
106
原创 抽象类为什么不能创建对象?
一、本质我们为了实现一个功能,要调用方法,方法由对象调用,要创建对象就要实例化,而抽象类提供的方法无法生成一个具体的对象(抽象类是残缺的)。二、设计层面为了实现多态,需要某些类单作为父类使用,给子类提供一个框架。...
2020-07-20 20:06:02
709
原创 JDBC(最简单方法)
java连接mysql数据库1.加载驱动Class.forName("com.mysql.jdbc.Driver");2.获取连接对象Connection conn =DriverManager.getConnection("jdbc:mysql://localhost:3306/3-15","root","root");3.获取StatementStatement st=conn.createStatement();4.查询ResultSet re = st.executeQuer
2020-07-04 03:14:58
211
原创 导入jar包
New-Folder复制jar包将jar包粘入刚才创建的Folder右键jar包-Build Path-add build to path
2020-07-04 02:24:28
110
原创 c++读一个txt文件
void readFile(){ ifstream myfile("sample.txt"); string temp; if (!myfile.is_open()) { cout << "未成功打开文件" << endl; } while(getline(myfile,temp)) { cout<< temp; } myfile.close();
2020-05-28 23:57:38
144
原创 逆波澜式计算器
栈的应用:逆波澜式计算器// Section 2.3//03.2 计算器 #include<iostream> #include"Stack_double.cpp"using namespace std;char get_command(){ char command; bool waiting = true; cout << "Select command and press <Enter>:"; while (waiting)
2020-05-27 00:02:37
144
原创 c++中string转成int
加入头文件#include<stdlib.h>string astring;int INT;INT =atoi(astring.c_str());
2020-05-26 21:58:28
323
原创 单链表实现的线性表
单链表实现的线性表List头文件Nodeutility成员列表List()size()full()empty()clear()traverse(void (*visit)(List_entry &))replace(int position, const List_entry &x)remove(int position, List_entry &x)insert(int position, const List_entry &x)List(const List ©)~Lis
2020-05-20 20:39:38
799
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人