1.在nuxt项目根目录下创建server.js 2.安装chalk npm install chalk server.js const http = require('http'); const chalk = require('chalk'); const OneProcess = requir ...
分类:
其他好文 时间:
2021-02-08 12:26:13
阅读次数:
0
025 Cause: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierIm Cause: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdent ...
分类:
其他好文 时间:
2021-02-08 12:07:01
阅读次数:
0
配置站点使用 https,并且将 http 重定向至 https。 1. nginx 的 ssl 模块安装 查看 nginx 是否安装 http_ssl_module 模块。 $ /usr/local/nginx/sbin/nginx -V 1 如果出现 configure arguments: - ...
分类:
Web程序 时间:
2021-02-08 11:41:11
阅读次数:
0
1.vue配置 /** * * 相对于该配置的nginx服务器请参考nginx配置文件 * */ module.exports = { // 基本路径 publicPath: '/', // 输出文件目录 outputDir: 'dist', // webpack-dev-server 相关配置 d ...
分类:
编程语言 时间:
2021-02-08 11:40:26
阅读次数:
0
模块化介绍 模块化是指讲一个大的程序文件,拆分成许多小的文件,然后将小文件组合起来。 模块化好处 防止命名冲突 代码复用 高维护性 模块化规范产品 ES6之前的模块化规范有: CommonJS ? NodeJS、Browserify AMD ? requireJS CMD ? seaJS ES6模块 ...
分类:
其他好文 时间:
2021-02-05 10:37:47
阅读次数:
0
let require = ()=>{throw new Error('函数必须传参')} let print = (num=require())=>{console.log(num)} print(2) // 2 print(null) // null print() // 报错 ...
分类:
其他好文 时间:
2021-02-04 11:52:57
阅读次数:
0
appium启动公司app报错如下,但是启动像企业微信、微信都是没有问题的; remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original e ...
分类:
移动开发 时间:
2021-02-03 11:09:40
阅读次数:
0
一、前端加密 1.引入base64依赖: cnpm install --save js-base64 2.使用base4对参数进行加密: let Base64 = require('js-base64').Base64 //加密方法 let password = Base64.encode(pass ...
分类:
编程语言 时间:
2021-02-02 11:36:40
阅读次数:
0
容器 1.torch.nn.Module() add_module(name,module): 将一个child module加入到当前的module,用model.name来获取 children():model.children()来查看所有的子模块 modules():返回所有的模块,与chi ...
分类:
其他好文 时间:
2021-02-02 11:21:56
阅读次数:
0
个人记录 let http = require("http"); let fs = require("fs"); let cheerio = require("cheerio");//服务端的DOM解析模块 http.get("http://www.mobiletrain.org/teacher/" ...
分类:
其他好文 时间:
2021-02-02 11:15:44
阅读次数:
0