自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 android px转dp

public final class UIUtil {public UIUtil() {}public static int dip2px(Context context, double dpValue) { float density = context.getResources().getDisplayMetrics().density; return (int)(dpValue * (double)density + 0.5D);}public static int get

2021-10-17 12:33:30 847

原创 IDEA快捷键

自己总结的一些常用的IDEA快捷键,有需要的拿走:ctrl+shift+alt:多行操作psvm:生成main()方法;fori:生成for循环;Ctrl+Alt+v:自动补齐返回值类型ctrl+o:覆写方法ctrl+i:实现接口中的方法ctrl+shift+u:大小写转换CTRL+SHIFT+Z:取消撤销Alt+Insert:生成构造方法、getter、setterctrl+y:删除当前行Ctrl+Shift+J:将选中的行合并成一行ctrl+g:定位到某一行Ctrl+Shitf

2021-09-24 16:22:20 78

原创 01.javaweb一个网站如何访问的

检查本机配置文件下有没有域名映射1.有:直接返回对应ip地址,这个地址中有我们需要访问的web程序可以直接访问2.没有:去DNS服务器查找https://archive.apache.org/dist/tomcat/tomcat-9/ Tomcat 源3.可以配置 tomcat环境变量4.发布一个web 将文件放在webapp下...

2021-09-22 10:39:02 272

原创 一个翻译软件

https://fanyi.qukaa.com/

2021-09-18 10:27:24 182 1

原创 快速搭建 docker minio 环境

先上minio 官网地址https://docs.min.io/docker 一键搭建docker run -p 9000:9000 -p 50000:50000 --name minio1 -e “MINIO_ACCESS_KEY=admin” \-e “MINIO_SECRET_KEY=12345678” -v /mnt/data:/data \ 挂载数据地址-v /mnt/config:/root/.minio \ 配置文件地址minio/minio se

2021-09-14 15:30:40 344

原创 js 执行顺序

promise 是微任务setTimeOut 是宏任务js 会先处理 promise 的微任务 然后处理 setTImeout 的宏任务

2021-06-16 16:22:55 42

原创 一个很牛逼的填充数组里对象的方法

newsList:new Array(5).fill({}).map(v=>({categoryName:‘公告’,title:‘6月2号全服不停机跟新公告’,data:‘06/01’}))填充5个 空对象 遍历 再将改对象替换为箭头函数内的内容

2020-10-15 10:32:52 336 1

原创 vue-awesome-swiper

//引用import { Swiper, SwiperSlide, directive } from ‘vue-awesome-swiper’;import ‘swiper/swiper-bundle.css’import Swiper2, {Navigation, Pagination} from ‘swiper’; // 这行代码很关键Swiper2.use([Navigation, Pagination]); // 这行代码很关键轮播图小圆点没出来,加上这串代码就成了...

2020-10-14 22:16:58 105

原创 nodejs登录管理

const mongoose =require(‘mongoose’)const scheama =new mongoose.Schema({username: {type:String},password: {type:String,select:false,set(val){return require(‘bcrypt’).hashSync(val,10)}},})module.exports =mongoose.model(‘AdminUser’,scheama)//selec

2020-10-13 20:57:07 181

原创 数据赋值

// this.categories = res.data;this.model=Object.assign({},this.model,res.data)使用第一种赋值方法会吧服务端返回数据覆盖res.data会影响到现用数据第二种方法-this.model+res.data

2020-10-13 08:58:24 471

原创 2020-10-12

const multer=require(‘multer’)const upload=multer({dest: __dirname+’/…/…/uploads’})app.post(’/admin/api/upload’,upload.single(‘file’),async(req,res)=>{const file =req.filefile.url=http://localhost:3000/uploads/${file.filename}res.send(file)})在app

2020-10-12 15:31:36 84

原创 nodejs

module.exports =app =>{const express =require(‘express’)const router = express.Router({mergeParams:true})router.post('/',async(req,res)=>{ const model=await req.Model.create(req.body) res.send(model)})router.put('/:id',async(req,res)=

2020-10-12 12:32:47 155

原创 jq增删改查

$(function() {// alert(11);// 1. 按下回车 把完整数据 存储到本地存储里面// 存储的数据格式 var todolist = [{title: “xxx”, done: false}]load();KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲title").on("key…(this).val() === “”) {alert(“请输入您要的操作”);} else {// 先读取

2020-08-22 21:19:30 255

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除