/* get参数处理-url核心模块 */ const url = require('url'); // parse方法的作用就是把URL字符串转化为对象 let str = 'http://www.baidu.com/abc/qqq?flag=123&keyword=java'; let ret ...
分类:
Web程序 时间:
2021-04-20 14:29:23
阅读次数:
0
软解: AV_PIX_FMT_YUV420P10LE in fmt:64IN Y :0x7f45280084c0074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074 ...
分类:
其他好文 时间:
2021-04-19 15:05:14
阅读次数:
0
项目运行环境 node v12.9.0 npm v6.10.2 cli-service v4.5.0 核心框架版本号 "vue": "^3.0.0", "vue-class-component": "^8.0.0-0", "vue-router": "^4.0.0-0", "vuex": "^4.0 ...
分类:
Web程序 时间:
2021-04-19 14:58:07
阅读次数:
0
1 import Home from '../views/Home.vue' { path: '/', name: 'Home', component: Home }, 2 { path: '/about', name: 'About', component: () => import('../vi ...
分类:
其他好文 时间:
2021-04-16 12:13:05
阅读次数:
0
参见微软官方 https://docs.microsoft.com/en-us/windows/win32/sysinfo/operating-system-versionusing System; using System.Collections.Generic; using System.Lin ...
作用:1.模拟生产后台数据,2.拦截Ajax请求 如果会后端,比如express,也可以自己写后端。不过这个mock,有许多生产数据的方法,值得学一下。毕竟单纯的自己写后端会费事的多。 // 安装 npm install mockjs // 使用 var Mock = require('mockjs ...
分类:
Web程序 时间:
2021-04-15 12:29:51
阅读次数:
0
一个请求通过经过中间件最后生成响应 基于koa2的demo const Koa = require('koa'); const app = new Koa(); const PORT = 3000; // #1 app.use(async (ctx, next)=>{ console.log('wa ...
分类:
其他好文 时间:
2021-04-15 12:19:38
阅读次数:
0
type Location = { //这是一个location pathname: Pathname; search: QueryString; query: Query; state: LocationState; action: Action; key: LocationKey;};class ...
分类:
其他好文 时间:
2021-04-13 12:11:38
阅读次数:
0
之前也讲过了,actions中是用来操作异步代码的,由于在mutations写异步操作会导致devtools工具记录不到state的变化,因此才有actions的存在,下面是基本的使用,如下: 点击按钮,发布到actions: <template> <div> <button @click="toA ...
分类:
其他好文 时间:
2021-04-12 11:52:14
阅读次数:
0
let http = require('http');// 引入url模块 获取域名后面的urllet path = require('path');let fs = require('fs');let url = require('url');let ejs = require('ejs');le ...
分类:
数据库 时间:
2021-04-07 10:47:53
阅读次数:
0