自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(59)
  • 资源 (2)
  • 收藏
  • 关注

原创 exceljs三级联动下拉列表

exceljs三级联动下拉列表

2023-05-10 09:39:29 359

原创 python数据导入mysql

python数据导入mysql

2022-06-24 14:14:51 700

原创 vue导入excel

<template> <div> <a @click="download">下载</a> <input type="file" accept=".xlsx" @change="change" /> <input type="button" value="上传" @click="submit" /> </div></template><script> impo.

2022-03-30 10:40:45 449

原创 python时间操作

import timefrom datetime import datetime,timedeltadate=datetime.now()print('当前时间',date)print("格式化",time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(date.timestamp())))print("格式化",time.strftime("%Y%m%d",time.localtime()))print("时间加一天",date+timedel.

2021-11-05 16:29:27 125

原创 PowerShell重启iis应用程序池

Set-Item WSMan:localhost\client\trustedhosts -value * -Force$cred=convertto-securestring -AsPlainText -Force -String $password$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "${ip}\${user}",$cred $session = New-PSS.

2021-10-06 19:24:26 464

原创 wmic创建进程

wmic /node:$ip /user:$user /password:$password --% Service where name="W3SVC" call stopservicewmic /node:$ip /user:$user /password:$password --% Service where name="W3SVC" call startservicewmic /node:$ip /user:$user /password:$password --% process where

2021-10-06 16:25:15 308

原创 C# SM2

using Org.BouncyCastle.Asn1.GM;using Org.BouncyCastle.Crypto;using Org.BouncyCastle.Crypto.Digests;using Org.BouncyCastle.Crypto.Engines;using Org.BouncyCastle.Crypto.Generators;using Org.BouncyCastle.Crypto.Parameters;using Org.BouncyCastle.Crypto..

2021-03-22 10:32:21 4235 3

原创 spring返回值封装

const request = require('request');let req = p => new Promise((s, f) => request(p, (e, r) => e ? f(e) : s(r)));let headers = { Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,applic.

2021-03-11 20:30:30 167

原创 js导出excel

const xlsx = require('xlsx');let wb = xlsx.utils.book_new();xlsx.utils.book_append_sheet(wb, xlsx.utils.json_to_sheet([{ a: 1, b: 2 }, { a: 3, b: 4 }]), 'a');xlsx.utils.book_append_sheet(wb, xlsx.utils.aoa_to_sheet([['a', 'b', 'c'], [4, 5, 6]]), 'b');.

2021-03-05 13:56:58 231

原创 iisexpress命令行运行

"C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:"d:\edata" /port:8012"C:\Program Files (x86)\IIS Express\iisexpress.exe" /config:"E:/edata/.vs/edata/config/applicationhost.config" /site:"edata" /apppool:"Clr4IntegratedAppPool"

2021-01-16 21:28:10 476

原创 chrome扩展

{//manifest.json "name": "name", "version": "1.0.1", "manifest_version": 2, "description": "description", "browser_action": { "default_icon": "icon.ico", "default_title": "name", "default_popup": "index.html" }, "permissions": [ .

2020-12-26 08:27:34 312

原创 docker制作运行

docker build -t $1:latest -f ${DOCKERFILE} --network host . #镜像制作docker tag $1:latest host:5000/${NAME}:${TAG}docker push host:5000/$1:$2 #上传仓库docker rmi -f $1:latestdocker rmi -f host:5000/$1:$2#!/bin/bashdocker image pull host:5000/$1:$2 #拉取镜像doc

2020-12-25 19:34:36 100

原创 防火墙firewall-cmd

firewall-cmd --list-all #查看防火墙firewall-cmd --state #状态firewall-cmd --list-ports #查看开放的端口firewall-cmd --query-port=80/tcp #查看firewall-cmd --permanent --add-port=80/tcp #添加端口firewall-cmd --permanent --remove-port=80/tcp #关闭端口firewall-cmd --reload #重新载入

2020-12-25 19:33:49 228

原创 linux配置jdk

mkdir /home/javacd /home/javawget -O jdk8 http://192.168.3.21/jdk-8u271-linux-x64.tar.gztar zxf jdk8 -C ./rm jdk8vim /etc/profileiexport JAVA_HOME=/home/java/jdk1.8.0_271export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAV

2020-12-25 19:33:07 63

原创 vue表格插槽

<tablecomponent :data="{items:[1,2,3]}"> <template slot="thead"> <label>table</label> <label>slot</label> </template> <template v-slot="{item}"> <label>table{{item}}&...

2020-09-13 07:26:21 1013

原创 js proxy

function proxy(data) { if (!data) data = []; return new Proxy(() => 0, { get(t, k) { let r = [].concat(data); r.push(k); return proxy(r); }, apply(t, k, args) { return `${d.

2020-09-03 18:52:21 96

原创 spring boot自定义参数注解

@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.PARAMETER,ElementType.METHOD})public @interface Test {}@Configurationpublic class TestConfig implements WebMvcConfigurer { @Override public void addArgumentResolvers(List<HandlerMet.

2020-07-27 19:08:51 437

原创 Spring线程中使用@Autowired

@Componentpublic class ApplicationContextUtil implements ApplicationContextAware { private static ApplicationContext applicationContext = null; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansE.

2020-06-29 20:11:32 723

原创 Newtonsoft.Json忽略empty

class ContractResolver : CamelCasePropertyNamesContractResolver{ protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization) { var a = ...

2020-04-18 08:50:48 309

原创 graphviz快速生成流程图

安装graphviz设置环境变量path=C:\Program Files (x86)\Graphviz2.38\bin命令:dot -T png d:/test.txt -o d:/test.png文档https://graphviz.gitlab.io/documentation/下载地址https://graphviz.gitlab.io/_pages/Download/Downl...

2020-03-30 18:30:48 607

原创 python http server

from aiohttp import webimport osimport timeasync def index_Handle(request): fp=open(os.path.abspath('./index.html'),'r',encoding="utf-8") text=fp.read() fp.close() return web.Resp...

2020-03-28 23:52:08 151

原创 windows查看进程命令行

wmic process get caption,commandline,processid /valuewmic process where caption="java.exe" get caption,commandline,processid /valuewmic process where processid=9764 get /format:value

2020-03-23 18:24:38 3727

原创 python设置win10壁纸

python设置win10壁纸

2020-02-10 19:30:04 949

原创 sqlserver分区

创建文件组alter database dbname add filegroup fq_01alter database dbname add file(name = 'fq_01',filename = 'f:\database\fq_01.mdf',size = 1mb,filegrowth = 1mb)to filegroup fq_01...创建分区函数create parti...

2020-01-20 14:40:06 106

原创 sqlserver获取时间

年月日select year(current_timestamp),month(current_timestamp),day(current_timestamp),convert(varchar(10), getdate(),120)时分秒 毫秒select datepart(hh,getdate()),datepart(mi,getdate()),datepart(ss,getdate...

2020-01-09 11:16:54 237

原创 A component is changing an uncontrolled input of type undefined to be controlled

A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or...

2020-01-02 12:30:58 1312

原创 javascript计算时间差

class ts { constructor() { this._ms = ['Month', 'Date', 'Hours', 'Minutes', 'Seconds', 'Milliseconds']; } _f(a, b, r, i) { var m = this._ms; for (; i < m.length; i++) { ...

2019-11-22 09:37:08 133

原创 log4net使用环境变量

Environment.SetEnvironmentVariable("log_home", @"d:/log");ILoggerRepository repository = LogManager.CreateRepository("Repository");XmlConfigurator.Configure(repository, configFileInfo);ILog log = L...

2019-10-13 11:21:12 666

原创 条件拼接

class CL { constructor(conditions) { this._conditions = conditions; } toString() { this._depth = 0; this._index = 0; this._curr = this._conditions[0]; ...

2019-10-05 09:49:43 161

原创 表单提交另类阻止方式

<div onsubmit="return alert('???'),false"><form><input type="submit"/></form></div>

2019-09-25 22:25:37 127

原创 vue拦截表单提交

<form id="app" v-if="isReady" @submit.prevent="submit"> <input type="text" name="name" v-model.trim.lazy="model.name" /> <input type="number" name="num" v-model.number="model.nu...

2019-09-24 19:08:35 635

原创 c#执行js

using (var js = new JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine()){ js.EmbedHostObject("console", new { log = new Action<object>(p => Console.WriteLine(p)) }); js.Execute(...

2019-09-21 15:57:12 783

原创 node-canvas使用自定义字体

const fs = require('fs');const { createCanvas, registerFont } = require('canvas');registerFont(env.url('iconfont/iconfont.ttf'), { family: 'iconfont' });for (let v of (await env.file.readAllText('i...

2019-09-12 20:32:02 1643

原创 nginx反向代理

include abc.com.conf;abc.com.conf:upstream abc_com { server 192.168.0.5:1111 weight=1; ...}upstream any_abc_com { server 192.168.0.6:1111weight=1; ...}server{ ... ...

2019-09-09 22:23:44 111

原创 nodejs文件监控&执行命令

async function exec(a) { return new Promise((resolve, reject) => { try { var end = 0; var http = require("http").createServer(function (req, res) { ...

2019-08-19 10:03:40 940

原创 上传图转base64

<script>function readAsDataURL(file, callback) { var reader = new FileReader(); reader.onload = function (e) { callback({ name: file.name, base64Url: e.target.result }); };...

2019-08-15 12:43:54 72

原创 python调dotnet

import clrimport timeimport osimport sysos.system("title job"+sys.argv[1])clr.AddReference('library')from library import *method=Sync.Instance.GetType().GetMethod(sys.argv[1])last=0while Tru...

2019-08-13 20:06:42 295

原创 nodejs+react动态调用jsx

var React = require("react");var ReactDOMServer = require("react-dom/server");var jsx = `<div> <a href={this.props.href}>{this.props.text}</a> <div dangerouslySetInnerH...

2019-08-03 22:12:07 1035 1

原创 JavaScript在原型上定义属性

Object.defineProperties(Number.prototype, { obj: { get: function () { return { add: p => this + p } } }, add: { value: function (p) { return this + p } }});console.log((1).obj...

2019-07-31 09:43:19 368

原创 使用html2canvas将html保存为图片

<div>使用html2canvas将html保存为图片</div><a download="使用html2canvas将html保存为图片.png"><img/></a><style>div { position:fixed; top:200%; background: -webkit-lin...

2019-06-29 11:38:22 169

chrome扩展插件获取ajax请求记录

chrome扩展插件获取ajax请求记录

2022-04-06

soChange 切换插件 soChange1.6.1

jquery 切换插件 支持焦点图片切换 选项卡切换 带按钮与分页索引按钮切换

2014-11-09

空空如也

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

TA关注的人

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