- 博客(22)
- 收藏
- 关注
原创 github clone报错fatal:unable toxxx
git clone github他人项目时候(自己的没试过)解决办法:1.点击github上头像下面的settings 2.点击左侧最下面的developer settings3. 点击最后一条personal access tokens4.点击generate new token 5.Note起个名字 填写下多久过期 我一般选No expiration 6.勾选repo 其他选项按照个人需要 7.点击最下面的generate token 8.跳转回去 绿色里面就是token了 复制 9.回到本地终端内加
2022-06-30 14:08:34
373
原创 vue项目使用Websocket留存
1.新建websocket.js文件let Socket = ''let setIntervalWesocketPush = nulllet wsUrl = ''let count = 0/** * 建立websocket连接 * @param {string} url ws地址 */export const createSocket = url => { Socket && Socket.close() wsUrl = url if (!Socke
2022-05-31 13:54:05
649
原创 uni-app踩坑H5移动端踩坑---fixed的button按钮被popup遮挡
问题:H5页面开发完,在pc端移动页面测试没有问题,但ios手机上弹出层把button盖住了。解决方法:把遮罩层popup等弹出界面的代码放到了代码最后。
2022-05-31 13:32:38
902
原创 不使用脚手架搭建vue2项目地址:
How to create a Vue.js app using Single-File Components, without the CLI.想自己不使用脚手架搭建一个vue项目,就找个了教程,这些废话是因为,光保存一个链接地址说我文章质量不佳。不得不加一些文字,搭建好项目后,需要一些基础项目配置。下次再加吧。...
2022-03-14 15:04:09
1055
原创 电视开vue项目缓存无法清除
index页面添加<meta http-equiv="pragram" content="no-cache"><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
2022-02-17 09:59:31
336
转载 windows中redis-server起不来
报错:Creating Server TCP listening socket *:6379: bind: No such file or directory解决方案:1.点击 -> redis-cli.exe2.敲入shutdown3.敲入exit4.点击 -> redis-server.exe
2021-12-01 09:39:57
304
原创 跟着《“笨办法”学Python》一起学Pyhton
个人笔记习题22 课后作业符号列表 符号 print 输出 # -*- coding: UTF-8 -*- OR# coding=utf-8 中文编码 coding=utf-8的“=”,左右无空格。 使用nodepad++时,设置中文编码失效: 修改nodepad++的编码——编码——编码字符集——中文——简体中文,再保存,OK。 # 注释 ””” 将复杂的字符串进行赋值 raw_input([prom..
2021-07-05 11:37:56
109
原创 [Python]:IndentationError: unexpected indent
python代码报错IndentationError: unexpected indent缩进错误:意外缩进Indentation[ˌɪndenˈteɪʃn] n.缺口;凹陷;凹痕;行首缩进;行首空格;造成凹陷(或缺口);将行首缩进indent[ɪnˈdent , ˈɪndent] v.将(印刷或书写的行)缩进,缩格,缩排 n.订单;订购unexpected[ˌʌnɪkˈspektɪd] adj.出乎意料的;始料不及的解决办法:检查缩进,该缩进的...
2021-07-05 09:53:30
251
原创 python下载安装
目录官网下载对应版本官网下载对应版本官网:https://www.python.org/可以下载最新版【Download the latest version of Python】也可以找其他想要的版本【Looking for a specific release?】选择的2.7.15版本,点击【download】选择【Windows x86-64 MSI installer】安装时记住选择的安装路径安装之后配置环境变量,在环境变量PATH中添加刚刚安装的python
2021-07-01 10:19:20
402
原创 Git命令行
Git查看分支Git查看本地所有分支git branchGit查看远程所有分支git branch -rGit查看所有分支git branch -aGit同步分支本地与远程分支同步git fetchGit切换分支git checkout 分支名Git撤销commitgit reset --hard commit的idGit新建分支并且在切换分支开发git checkout -b 分支名Git把新建的分支push到远程git
2021-04-29 10:15:29
176
原创 通过localStorage两个css切换深浅模式
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Do.
2021-03-02 21:35:50
194
原创 Less:vscode里保存.less生成对应.wxss文件
最近开发小程序,用惯了less、sass,还真不太习惯。所以想用less生成对应的wxss。vscode插件库里搜索Easy Less 安装 打开 扩展设置 在setting.json中编辑 "less.compile": { "out":"${workspaceRoot}\\common\\wxss\\", "outExt": ".wxss"}, 修改less.compile如上。 out指保存路径,我的路径是:保存到项目
2021-02-20 17:09:54
428
原创 微信小程序: app.wxss中引入weui.wxss提示not found...
错误信息:File not found: 'weui-miniprogram/weui-wxss/dist/style/weui.wxss';学习小程序的过程中想尝试一下weui,按照官方文档“快速上手”进行操作。官方建议通过通过useExtendedLib 扩展库的方式引入,但我没有。还是习惯性的通过npm,执行了npm install weui-miniprogram --save当然用npm之前,确定本地项目中使用了node.js。通过微信开发者工具里,构建npm,项目勾...
2021-02-20 16:59:30
4653
1
原创 Vue项目中的eslintrc校验格式---使用VSCode的ESLint保存自动修正格式
在扩展(Extensions)里搜索ESLint安装点击Extension Settings "eslint.codeAction.showDocumentation": { "enable": true }, "eslint.enable": true, "eslint.autoFixOnSave": true, "eslint.run": "onType", "eslint.options": {"exte
2020-09-28 11:31:44
325
原创 Git----提交信息填写规范
commit message每一部分的填写规则1. type必填项,用于指定commit的类型。#常用typefeat: 添加新功能 fix: bug修复如有issue,添加#id ui: 样式修改#不常用typedocs: 文档内容修改不影响项目代码 styles: 不影响代码的...
2020-08-28 15:15:33
406
原创 Vue项目调后台.Net core接口localhost:8080与localhost:5001跨域
在vue项目内的vue.config.js文件中module.exports内找devServer,如果没有手动添加。代码:module.exports = { devServer: { host:"localhost", port:8080, proxy: { "/api": { //自定义 "target": "https://localhost:5001", //这里可以跟随项目实际部署服务器来 ws: true,
2020-08-25 15:07:08
1434
原创 Vue点击按钮控制左侧菜单显示隐藏-elementUI
<template><div class="home-container"><el-menu :collapse="isCollapse">...</el-menu></div><div><span @click="isCollapse = !isCollapse"></span></div></template><script>export def.
2020-08-06 14:54:30
3357
原创 Vue.js-ElementUI-自定义主题
Vue.js-ElementUI-自定义主题在线主题编辑器在线主题编辑器下载自己修改过的主题后,解压style.zip。1.将theme文件夹添加到项目。2.在main.js里添加import ‘theme/index.css’,具体路径根据项目更改。
2020-08-05 15:21:12
185
原创 ERROR This dependency was not found:
ERROR Failed to compile with 1 errorsThis dependency was not found:* theme/index.css in ./src/main.jsTo install it, you can run: npm install --save theme/index.css解决办法:修改build ---> webpack.base.conf.js ---> resolveresolve:{e...
2020-08-05 15:11:25
345
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人