摘要: // 字符处理的相关api // String.slice(start?: number, end?: number): string // String.substr(from: number, length?: number): string // String.substring(start: 阅读全文
posted @ 2021-05-29 17:15 熊灬火火 阅读(82) 评论(0) 推荐(0)
摘要: display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp:3; overflow: hidden; 其中 -webkit-line-clamp:3; 里面的参数是需要的行数 第一个是通过jsonp解决跨域 ps:默认 阅读全文
posted @ 2021-05-27 22:39 熊灬火火 阅读(57) 评论(0) 推荐(0)
摘要: document.querySelector(“#xxxx”).scrollIntoView({ behavior:"smooth", //带滚动效果 block:"start" //上边框与顶部空间对齐 默认值 }) 当然这个是原生js,所有在任何地方都可以使用.不仅仅是在vue里面 阅读全文
posted @ 2021-03-10 16:11 熊灬火火 阅读(111) 评论(0) 推荐(0)
摘要: 第一步 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 熊灬火火 阅读(333) 评论(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 熊灬火火 阅读(119) 评论(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 熊灬火火 阅读(165) 评论(0) 推荐(0)
摘要: 在flask中有两种上下文 分别为应用上下文和请求上下文 flask的全局变量 current_app 应用上下文 当前应用的应用实例 g 应用上下文 处理请求时用作临时存储对象,每次请求都会重设这个变量 request 请求上下文 请求对象,封装了客服端发出的HTTP请求的内容 session 请 阅读全文
posted @ 2021-02-14 20:12 熊灬火火 阅读(67) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zn740395858/article/details/80486179?utm_source=blogxgwz5 来自于转载 阅读全文
posted @ 2021-02-14 15:56 熊灬火火 阅读(28) 评论(0) 推荐(0)