原创 雲函數使用 koa 和 express

使用 serverless-http 插件轉換請求 Koa // index.js 'use strict' const serverless = require('serverless-http') const Koa =

原创 puppeteer-recorder

puppeteer-recorder 的原理是截取每一幀圖片,然後使用 ffmpeg 生成視頻,所以電腦上需要安裝 ffmpeg 使用 yarn add puppeteer puppeteer-recorder const

原创 AD 域內網映射

部署Office Online 服務需要 AD 域服務器 ,公司只有一個雲服務器,只能把之前在本地測試安裝Office Online 的AD 域服務器拿來用 使用FRP端口映射 服務端 使用 Daocloud 的免費的臨時d

原创 office 在線預覽

office 在線預覽 永中office dcs xdocin Spire系列 officeweb365 wps在線預覽 idocv onlyoffice office online serve ntko pageOffice

原创 vue 打印(模板套打)

vue 使用  print-template 生成pdf 打印 。支持生成二維碼、條形碼、文本、圖片、線  安裝 yarn add print-template 或 npm install print-template 內容類型

原创 docker 安裝數據庫

docker 安裝數據庫SQL Server 數據庫MySql 5.7.16 數據庫MongoDB 數據庫PostgreSQL 數據庫 SQL Server 數據庫 官方文檔 sudo docker pull mcr.micr

原创 canvas繪製背景參照表格

Html <canvas id="canvas"></canvas> JavaScript let canvas = document.querySelector('#canvas') let width = 1024; l

原创 sequelize 查詢只獲取結果

使用sequelize 的 findOne 、findAll、findAndCountAll 查詢返回的結果都是經過sequelize 格式化過的,我們可已使用 raw 屬性來直接獲取數據結果 options.raw 屬性 /

原创 vue 引入monaco-editor

安裝 yarn add monaco-editor monaco-editor-webpack-plugin 或 npm install monaco-editor monaco-editor-webpack-plugin 修

原创 vue實現右鍵菜單

自己寫的右鍵菜單組件 可以直接安裝 npm i @xxllxx/vue-context-menu 文章目錄代碼目錄結構代碼index.jsutils.jsindex.vueitem.vue使用全局註冊context-menu

原创 html獲取元素座標

// 獲取元素座標 function getElementOffset(element) { let offset = { left: 0, top: 0 } let current = element.offsetPar

原创 網站黑白樣式

html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%);

原创 canvas 星空特效

阿里雲圖標首頁背景–星空特效 效果 代碼 <html> <canvas id="_bgcanvas" style="position: fixed;z-index:-1"></canvas> <script> /**