vscode配置
配置打开 vscode
打开菜单栏[文件]—>[首选项]—>[设置]—>打开设置(settings.json)
基础配置如下123456789101112131415161718192021222324{ // 底部状态栏 "workbench.colorCustomizations": { "statusBar.background": "#1A1A1A", "statusBar.noFolderBackground": "#0A0A0D", "statusBar.debuggingBackground": "#511f1f" }, //缩进2格 "editor.tabSize": 2, //缩进格数不被重写 "editor.detectIndentation": false, //配置git路径(win) "te ...
uni-app
uni-app 开发
Vue2参考
注 Vue2 创建的项目,脚手架版本要用@4 的版本,用@5 的版本运行项目会报错,这里推荐 @4.5.15
查看 vue-cli 版本
$ vue --version
@vue/cli 4.5.15
安装依赖
npm install -g @vue/cli@4.5.15
创建项目
vue create -p dcloudio/uni-preset-vue 项目名称
等待自动安装依赖包
选择模板选择默认模板
json 文件可写注释注: 不要在 package.json 添加注释, 否则编译会出错配置 jsonc 防止文件警告, 在设置中打开 settings.json ,添加:
1234567{ "files.associations": { "pages.json":"jsonc", "manifest.json":"jsonc", "jsconfig.json":"j ...
markdown语法
markdown 学习
介绍百度百科
简介Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档。
应用
当前许多网站都广泛使用 Markdown 来撰写帮助文档或是用于论坛上发表消息。例如:GitHub、简书、知乎等
徽章徽章是一种小巧精美的小图标,一般配有相关文字进行辅助说明,可对数据进行监控,链接跳转等,富有表现力。常见于 github 项目主页,但其不仅出现于 github 项目主页,凡是能够表现图片的地方都可以出现徽章
123格式: [](超链接地址) 即超链接内部嵌套图片语法:[](https://github.com/xugaoyi)
徽章生成网站: https://shields.io/
徽章生成教程
编辑vscode 下载markdown-formatter插件setting.json配置:
12345678910111213141516171819 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.欢迎来到Hexo! 这是你的第一篇文章。检查文件更多信息。如果您在使用Hexo时遇到任何问题,可以在[故障排除]中找到答案(https://hexo.io/docs/troubleshooting.html)或者你可以在[ ...
对接支付宝支付接口
*一. 申请开发??访问开发者中心https://openhome.alipay.com/platform/appDaily.htm?tab=info
进行认证后(真实姓名,绑定手机号和邮箱), 即可进入沙箱配置页
二. 配置密钥1. 下载密钥生成工具访问 https://docs.open.alipay.com/291/105971
下载AlipayDevelopmentAssistant-1.0.7.exe (支付宝开发平台开发助手)密钥工具 大约100多M 正常安装
2.使用工具生成公钥私钥
3.设置公钥加签方式选择公钥
保存公钥,退款需要用到
三. NodeJS请求支付接口(koa)1.保存私钥
新建app_private_key.pem文件
2.实现代码
支付参数
https://opendocs.alipay.com/apis/api_1/alipay.trade.page.pay
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 ...
hexo
hexo教程
官网 https://hexo.io/zh-cn/
1. 安装nodehttps://nodejs.org/zh-cn/
$ node -vv14.17.0
$ npm -v6.14.13
2. 全局安装脚手架npm install -g hexo-cli
3. 安装依赖包npm install hexo
4. 主题下载主题 到themes文件内npm i hexo-theme-butterfly或者git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
修改_config.yml 布局配置主题文件主题配置教程https://www.jianshu.com/p/50a565adaf15?ivk_sa=1024320u
换主题,调整清除缓存hexo clean
主题报错处理
https://zhuanlan.zhihu.com/p/137946156
5. 部署配置预览部署路径npm install hexo-deployer-git –save_c ...
印象笔记导出md文件
印象笔记导出md文件
地址:https://github.com/wormi4ok/evernote2md
插件地址
印象笔记导出md文件方法
1.先导出格式
enex格式
2.使用导出工具(按平台使用环境)
github https://github.com/wormi4ok/evernote2md
下载地址: https://github.com/wormi4ok/evernote2md/releases/tag/v0.17.1
3.windows环境下的使用方法
把evernote2md.exe拖拽到终端控制台,然后空格,拖拽要目标enex文件,转化成功导出md文件
命令: 自动导出目标文件
$ /d/Desktop/印象笔记导出/evernote2md.exe /d/Desktop/印象笔记导出/YinXiangBiJi.enex
ECMAScript-6
一.资料MDN(Mozilla 开发者网络)ECMAScript 6 入门(阮一峰)
二.块级作用域绑定var function 存在变量提升var 只会提前声明 function 既声明有定义
12345console.log(fun1);function fun1() { var b = 4;}console.log("fun1" in window); //true
let
12345678910111213141516171819// a is not defined//console.log(a) 报错//1.没有变量提升//2.不可以重复声明//3.不会给window增加属性let a = 1;console.log(window.a); //undefinedfunction getValue() { if (condition) { // var value='blue' let value = "blue"; //其他代码 retur ...
代码片段
去重12345678910111213141516171819202122232425//第一种方法 Array.prototype.unique = function(){ //在原型上加方法 var res = []; var json = {}; for(var i = 0; i < this.length; i++){ if(!json[this[i]]){ //是否存在 res.push(this[i]); json[this[i]] = 1; //保存了 } } return res;}var arr = [112,112,34,'你好',112,112,34,'你好','str','str1'];console.log(arr.unique()) //[112, 34, "你好", "str", "str1"]//2.//判断是否第一 ...