摘要: package.json里面添加如下代码 npm i (electron老版本不易出错,装新版本出错请自行百度!) 安装完成后 在src目录下新建background.js 'use strict' import { app, protocol, BrowserWindow } from 'elec 阅读全文
posted @ 2020-12-07 19:06 江浩゛ 阅读(1399) 评论(1) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_41801484/article/details/109801317 阅读全文
posted @ 2020-11-25 14:29 江浩゛ 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: import router from "@/router"; import store from "@/store"; import axios from "axios"; import { Message, Loading } from "element-ui"; let service = ax 阅读全文
posted @ 2020-10-26 15:25 江浩゛ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1 //向上移动 2 moveUp(index,row) { 3 var that = this; 4 console.log('上移',index,row); 5 console.log(that.imageData[index]); 6 if (index > 0) { 7 let upDate 阅读全文
posted @ 2020-10-20 15:43 江浩゛ 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: npm install -g cnpm --registry= https://registry.npm.taobao.org 提升安装插件速度 安装完成 cnpm -v 阅读全文
posted @ 2020-10-16 17:16 江浩゛ 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 星星移动 1 /** @type {HTMLCanvasElement} */ 2 var canvas = document.getElementById("tutorial"); 3 var ctx = canvas.getContext("2d"); //获得画笔 4 //设置canvas的宽 阅读全文
posted @ 2020-10-14 13:54 江浩゛ 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.Canvas画矩形 1 /** @type {HTMLCanvasElement} */ 2 var canvas = document.getElementById("tutorial"); 3 var ctx = canvas.getContext("2d"); //获得画笔 4 /* 5 阅读全文
posted @ 2020-10-14 11:25 江浩゛ 阅读(1567) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/Web/API/Canvas_API/Tutorial canvas 代码提示 /** @type {HTMLCanvasElement} */ 在获取dom之前加此注释 可提示ctx的方法 1.绘制圆(圆弧)http 阅读全文
posted @ 2020-10-13 15:55 江浩゛ 阅读(460) 评论(1) 推荐(0) 编辑
摘要: https://blog.csdn.net/oumaharuki/article/details/78861778 阅读全文
posted @ 2020-09-25 11:15 江浩゛ 阅读(302) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/web-record/p/9876916.html 小姐姐写的 很细 请求头token的加入 可写在封装axios里面 请求拦截时 将token加在请求头里》》》 service.interceptors.request.use( config => 阅读全文
posted @ 2020-09-25 10:22 江浩゛ 阅读(250) 评论(0) 推荐(0) 编辑