loader我的理解是把非js的模块转换成js模块,毕竟浏览器只认识js语言 当处理一种类型模块的时候,多个loader配置时从右向左进行应用 loader使用主要有以下三种方式: module.exports = { module:{ rules:[ { test: /\.less$/, load ...
分类:
Web程序 时间:
2021-03-30 13:52:20
阅读次数:
0
let OSS = require('ali-oss'); let client = new OSS({ region: '配置自己的', //云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,部署在服务端使用RAM子账号或STS,部署在客户端使用STS。 accessKey ...
分类:
Web程序 时间:
2021-03-30 13:50:11
阅读次数:
0
When dealing with `fs` library, the common problem you will meet is the path to file. Different envs may have different way to handle the path. The be ...
分类:
Web程序 时间:
2021-03-30 13:42:21
阅读次数:
0
环境:基于composer引入包和thinkphp6+https+workerman. 1.composer引入gatewayworker 使用phpstorm更方便(在composer.json中require中添加这些 phpstorm会自动引入) 或者使用命令行 composer requir ...
分类:
Web程序 时间:
2021-03-29 12:18:46
阅读次数:
0
const { resolve } = require("path") const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { fil ...
分类:
Web程序 时间:
2021-03-29 12:08:56
阅读次数:
0
通过remix部署合约出现了一些问题。 编码如下: pragma solidity^0.4.0;contract FaucetTest{ function withdraw(uint withdraw_amount) public { require(withdraw_amount <= 10000 ...
分类:
移动开发 时间:
2021-03-29 11:57:33
阅读次数:
0
以内核模块 drbd 为例: 1、创建 /etc/modules-load.d/drbd.conf 中,直接写模块名: drbd 2、创建 /etc/sysconfig/modules/drbd.modules:内容如下 # drbd module exists? /usr/sbin/modinfo ...
分类:
其他好文 时间:
2021-03-29 11:51:34
阅读次数:
0
用spyder运行正常,程序上传到服务器,添加计划任务,运行报错:ModuleNotFoundError: No module named 'selenium',实际上已经安装了。 搜索一番,有人说程序前面加上: import sys import os curPath = os.path.absp ...
分类:
其他好文 时间:
2021-03-29 11:49:17
阅读次数:
0
node和python默认的rsa加密方式是不一样,要调整一下。 node代码: const fs = require('fs'); const NodeRSA = require('node-rsa'); const path = require('path').resolve(); const ...
分类:
编程语言 时间:
2021-03-29 11:41:58
阅读次数:
0
创建db.js 1.安装mysql依赖 //打开终端,输入 npm install mysql 2.导入mysql依赖 var mysql = require('mysql'); 3.创建一个mysql的Connection对象,配置数据库连接信息。 var conntion = mysql.cre ...
分类:
数据库 时间:
2021-03-26 15:15:43
阅读次数:
0