原创 webpack5配置,webpack.config.js

// 用來拼接絕對路徑 const {resolve} = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.expor

原创 Win10怎麼以管理員運行命令提示符?管理員運行cmd的方法

  方法一:   1、windows10系統電腦按下【ctrl+shift+esc】組合鍵打開任務管理器;   2、在任務管理器中點擊【文件】-【運行新任務】;     3、在新建任務框中勾選【以系統管理權限創建

原创 Frp內網穿透快速實現遠程桌面

1.前言 TeamViewer、向日葵等第三方軟件大多是商業化軟件,有各種限制。 本文介紹如何使用Frp搭建實現遠程桌面連接(服務端爲Linux,客戶端windows) 2.Frp Frp 是一款開源的、簡潔易用、高性能的反向代理軟件 它支

原创 微信小程序 getUserProfile直接進入fail函數,getUserProfile調用失敗:fail can only be invoked by user TAP gesture.

問題描述小程序更改了調用用戶信息的接口,詳情 調用getUserProfile直接進入失敗返回的錯誤信息如下getUserProfile:fail can only be invoked by user TAP gesture. 大概意思是

原创 uniapp在微信小程序獲取用戶信息和openId

uniapp在微信小程序獲取用戶信息和openId獲取用戶信息獲取openId獲取用戶信息使用getUserProfile(),這個方法在每次出發的時候都會調起微信授權的那個彈出層,爲什麼不用getUserInfo(),微信給程序員們發公告

原创 linux中如何查看mac地址

linux 最常用的查看mac地址的方式 有很多種,下面給出4種方式, ifconfig 這是最常用的方式 ip link show cat /sys/class/net/eth0/address 查看eth0的mac地址 dmesg | 

原创 Bat批處理命令實現一鍵安裝mysql環境

安裝mysql文件包下載mysql-8.0.15-winx64.zip,地址是https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.15-winx64.zip 寫bat文件把文件夾解

原创 antd+vue table表格-合併列

columns要在data()裏面定義,如果在外面const後會報錯,取不到list數據 /** * @param text 當前單元格的值 * @param array 當前分頁所有數據 * @param columns

原创 antd table組件中 如果DataSource數據源裏面的數據裏有chlidren屬性,會自動展開爲樹形結構的表格。如果數據源中有children屬性但是並不需要樹形結構要怎麼設置

antd table組件中 如果DataSource數據源裏面的數據裏有chlidren屬性,會自動展開爲樹形結構的表格。如果數據源中有children屬性但是並不需要樹形結構要怎麼設置 文檔說【如果不需要或配置爲其他字段可以用 child

原创 遍歷樹形數據,刪除其空children項

let arr2=[{ label: '一級 1', children: [{ label: '二級 1-1', children: []

原创 windows離線補丁下載

1.打開官網https://www.catalog.update.microsoft.com 2.搜索,如:2018適用於 windows 10 version 1511 3.找到結果點擊Download下載 4.安裝  

原创 .net core api 靜態文件允許跨域

public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseStaticFiles(new St

原创 antd vue Unknown custom element: <a-pagination> - did you register the component correctly

antd vue Unknown custom element: <a-pagination> - did you register the component correctly 解決方法:core/lazy_lib/components

原创 css設置圖片body全鋪滿,整個背景都是一張圖片的寫法

body { background-image: url('images/1.png'); background-repeat: no-repeat; background-position:

原创 C#根據身份證號碼計算年齡和性別

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressi