02 2021 档案

摘要:第一步 npm install axios vue-axios --save; (安装对应的依赖) 第二步 (在main.js里面) import axios from "axios"; import VueAxios from "vue-axios"; Vue.use(VueAxios, axio 阅读全文
posted @ 2021-02-27 13:02 熊灬火火 阅读(334) 评论(0) 推荐(0)
摘要:1 const fs = require("fs") 2 //判断是否是文件还是文件夹 3 fs.stat("../node_modules",(err, stats) => { 4 if (err){ 5 console.log(err) 6 } 7 console.log(`是文件:${stat 阅读全文
posted @ 2021-02-16 15:11 熊灬火火 阅读(144) 评论(0) 推荐(0)
摘要:基本信息设置 设置用户名 git config --global user.name "username" 设置用户邮箱 git config --global user.email "user_email" 查看相关配置 git config --list 创建一个仓库(本地) 并初始化 (在命令 阅读全文
posted @ 2021-02-15 21:07 熊灬火火 阅读(120) 评论(0) 推荐(0)
摘要:import axios from "axios"; //第一种方式 export function request(config,success,failure) { const instance = axios.create({ baseURL:"http://123.207.32.32:800 阅读全文
posted @ 2021-02-15 14:53 熊灬火火 阅读(99) 评论(0) 推荐(0)
摘要:请求地址 url:"/user" 请求类型 method : "get" or "post" 请求根路径 baseURL :"https://www.baidu.com/" 请求前的数据处理 transformRequest:[function(data){}] 请求后的数据处理 transform 阅读全文
posted @ 2021-02-15 13:07 熊灬火火 阅读(167) 评论(0) 推荐(0)
摘要:在flask中有两种上下文 分别为应用上下文和请求上下文 flask的全局变量 current_app 应用上下文 当前应用的应用实例 g 应用上下文 处理请求时用作临时存储对象,每次请求都会重设这个变量 request 请求上下文 请求对象,封装了客服端发出的HTTP请求的内容 session 请 阅读全文
posted @ 2021-02-14 20:12 熊灬火火 阅读(68) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/zn740395858/article/details/80486179?utm_source=blogxgwz5 来自于转载 阅读全文
posted @ 2021-02-14 15:56 熊灬火火 阅读(28) 评论(0) 推荐(0)
摘要:screenX:鼠标在显示屏幕上的坐标。clientX:鼠标在页面显示区域的坐标。注:以上两个都是各浏览器通用的。pageX:FF特有,鼠标在页面上的位置,从页面左上角开始定位,这个可以很方便在整个页面上进行定位,IE没有直接替换的属性。layerX:FF特有,鼠标相对于“触发事件的元素的层级关系中 阅读全文
posted @ 2021-02-08 12:35 熊灬火火 阅读(166) 评论(0) 推荐(0)
摘要:Date.prototype.Format = function (fmt) { // author: meizz var o = { "M+": this.getMonth() + 1, // 月份 "d+": this.getDate(), // 日 "h+": this.getHours(), 阅读全文
posted @ 2021-02-06 21:20 熊灬火火 阅读(162) 评论(0) 推荐(0)