自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (4)
  • 收藏
  • 关注

原创 vue3使用TinyMCE富文本

TinyMCE 是一个功能强大的富文本编辑器,它允许您在网页应用程序中创建和编辑具有丰富格式的内容。

2023-11-27 09:09:48 268

原创 vue3 jsx或tsx中使用自定义指令

vue3 jsx或tsx中使用自定义指令

2023-10-25 10:17:12 732

原创 Naive UI 文档地址

最近几天官网访问不了,自己搭建了个。

2023-10-05 10:24:57 743 2

原创 DevEco Studio设置Nodejs提示路径只能包含英文、数字、下划线等

安装设置Nodejs路径使用nodejs默认安装路径 (C:\Program Files\nodejs) 提示只能包含英文、数字、下划线等 , 不想在安装nodejs请往下看。

2023-10-04 22:21:24 4424 19

原创 node获取抖音直播间Id

node获取抖音直播间Id

2023-08-17 12:26:10 503

原创 C#获取虎牙直播弹幕

获取虎牙直播间弹幕信息。

2023-06-30 13:08:39 722

原创 Gitee Go 提交变更

GItee Go 自动化构建提交代码库变更

2023-04-30 21:27:57 64

原创 C# 比较版本号

C#比较版本号

2022-12-18 21:52:25 527

原创 C# 用户名称隐私处理

/// <summary>/// 用户名称隐私处理/// </summary>/// <param name="userName"></param>/// <returns></returns>public static string UserNameFormat(string userName){ if (string.IsNullOrWhiteSpace(userName)) { ret.

2021-09-13 11:55:30 210

原创 鸿蒙OS JSUI开发常用的API

接口// 应用信息 https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-basic-features-context-0000000000611801import app from '@system.app';// 系统通知消 https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-system-no

2021-06-07 23:15:42 1204

原创 node根据ip获取归属地

使用的ipip.net的离线试用版国内只能定位的市,国外到国家。(需要下载ip文件)

2021-06-05 09:50:09 1828

原创 node 控制台显示二维码图片

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar

2021-05-13 20:37:44 894 1

原创 vite require is not defined

vuex使用webpack中require.context(’./modules’, true, /.js$/) 获取目录下的所有文件,升级vue3使用vite报 require is not definedimport { createStore } from 'vuex'import getters from './getters'// https://vitejs.dev/guide/features.html#glob-importconst modulesFiles = import.

2021-04-10 20:36:46 13272 8

原创 puppeteer 网站开启Flash

const puppeteer = require('puppeteer');(async () => { const browser = await puppeteer.launch() // flash网站 const flashSite = 'http://www.4399.com/' let flashPage = await browser.newPage(); await flashPage.goto(`chrome://settings/content/siteDe

2020-10-16 13:41:36 540

原创 ubuntu 编译 vscode web

sudo apt update || sudo apt install npm -y && sudo npm install n -g --registry https://registry.npm.taobao.org && sudo n stable && sudo npm install -g yarn --registry https://registry.npm.taobao.orgsudo apt-get install g++ libx1

2020-09-06 17:48:47 259

原创 ubuntu 部署 SoftEther Server

安装 方法1完整编译环境sudo apt update;sudo apt install gcc make -y下载SoftEther Serversudo wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.34-9745-

2020-09-04 15:49:58 5529 1

原创 create-react-app 配置 less

使用 react-app-rewired 修改 webpack 配置安装 react-app-rewired 和 less yarn install react-app-rewired less less-loader --dev --registry https://registry.npm.taobao.org添加config-overrides.js/* config-overrides.js */module.exports = function override(confi.

2020-08-25 20:40:30 678

原创 Ubuntu安装Node

sudo apt update sudo apt install npm -y sudo npm install n -g sudo n stable

2020-08-20 12:34:57 170

原创 Ant Design of Vue Icon 图标列表

拷贝插件yarn add vue-clipboard2// main.js//复制到粘贴板插件import VueClipboard from 'vue-clipboard2'VueClipboard.config.autoSetContainer = trueVue.use(VueClipboard)图标列表// /src/views/icons.vue<template> <div> <a-radio-group :value="t.

2020-08-06 16:49:37 5751 2

原创 puppeteer-recorder

puppeteer-recorder 的原理是截取每一帧图片,然后使用 ffmpeg 生成视频,所有电脑上需要安装 ffmpeg安装yarn add puppeteer puppeteer-recorder使用const puppeteer = require('puppeteer');const {record}= require('puppeteer-recorder');(async () => { const browser = await puppeteer.laun.

2020-07-05 10:33:29 1156

原创 云函数使用 koa 和 express

使用 serverless-http 插件转换请求Koa// index.js'use strict'const serverless = require('serverless-http')const Koa = require('koa')const app = new Koa()app.use(async (ctx) => { ctx.body = 'Hello World Koa'})// 执行方法exports.main_handler = serverles.

2020-07-02 22:29:40 673 1

原创 office 在线预览

office 在线预览永中office dcsxdocinSpire系列officeweb365wps在线预览idocvonlyofficeoffice online serventkopageOffice百度云 doc毕升office

2020-06-16 12:39:07 314

原创 vue 引入monaco-editor

安装yarn add monaco-editor monaco-editor-webpack-plugin或npm install monaco-editor monaco-editor-webpack-plugin修改webpack 配置// vue.config.jsconst MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')module.exports = { chainWebpack: config =&

2020-05-19 20:53:26 880 1

原创 sequelize 查询只获取结果

使用sequelize 的 findOne 、findAll、findAndCountAll 查询返回的结果都是经过sequelize 格式化过的,我们可已使用 raw 属性来直接获取数据结果options.raw 属性// 获取单个实体User.findOne ({ where: {Id:'xxxxx'}, raw: true,})// 获取ListUser.findAll({ //... raw: true,})// 获取分页数据User.fin.

2020-05-17 20:55:13 2282 2

原创 vue实现右键菜单

自己写的右键菜单组件文章目录代码目录结构代码index.jsindex.vueitem.vue使用全局注册组件内注册.代码目录结构├── src ├── components └── context-menu ├── index.js ├── index.vue └── item.vue 代码index.js// src/components/context-menu/index.jsexport functio.

2020-05-10 22:27:01 852

原创 html获取元素坐标

// 获取元素坐标function getElementOffset(element) { let offset = { left: 0, top: 0 } let current = element.offsetParent offset.left += element.offsetLeft offset.top += element.offsetTop while (current !== null) { offset.left += current.offsetLef

2020-05-10 11:33:31 1097

原创 canvas绘制背景参照表格

Html <canvas id="canvas"></canvas>JavaScriptlet canvas = document.querySelector('#canvas')let width = 1024;let height = 768;canvas.setAttribute('width',width)canvas.setAttribute('...

2020-04-06 22:38:14 235

原创 docker 安装数据库

docker 安装数据库SQL Server 数据库MySql 5.7.16 数据库MongoDB 数据库PostgreSQL 数据库SQL Server 数据库官方文档sudo docker pull mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04sudo docker run -e "ACCEPT_EULA=Y" -e "...

2020-04-04 15:21:32 192

原创 网站黑白样式

网站黑白样式html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: progid:DXImageTransform.Microsoft.Basi...

2020-04-03 23:43:36 152

原创 canvas 星空特效

阿里云图标首页背景–星空特效效果代码<canvas id="_bgcanvas" style="position: fixed;z-index:-1"></canvas><script>/** * * @param {string} element canvas 元素 * @param {int} width 宽 * ...

2020-03-01 08:30:30 376

原创 vue 打印(模板套打)

vue 使用print-template生成pdf 打印 。支持生成二维码、条形码、文本、图片、线安装yarn add print-template或npm install print-template内容类型line 线条 barcode 条形码 qrcode 二维码 image 图片 text 文本 内容属...

2020-01-03 22:34:04 17967 34

python + opencv 识别滑块验证码滑块位置

python + opencv 识别滑块验证码滑块位置

2023-08-20

vue3使用print-template生成pdfDemo

vue3使用print-template生成pdfDemo

2023-08-18

curl日常使用命令详解

curl命令详解

2023-08-13

C#通过WebSocket获取虎牙直播间弹幕

C#通过WebSocket获取虎牙直播间弹幕

2023-06-30

node 获取并下载bing每日图片

通过node 获取并下载bing每日图片

2023-05-13

vue3仿抖音视频滑动切换播放

vue3仿抖音视频滑动切换播放

2022-03-20

CSGO武器道具3d模型文件

包含武器和手套61个道具3D模型文件(.obj文件),不包含纹理和材质

2021-09-27

ipipfree.ipdb

ipip.net的离线试用版

2021-06-05

空空如也

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

TA关注的人

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