准备连接数据库: const Sequelize = require("sequelize");const {dbName,host,user,password,port} = require("./config/index").database;const sequelize = new Sequ ...
分类:
数据库 时间:
2020-07-04 18:50:05
阅读次数:
121
const fs=require('fs'); //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<st ...
分类:
编程语言 时间:
2020-07-04 15:35:58
阅读次数:
79
1、先把composer调成国内镜像: composer config -g repo.packagist composer https://packagist.phpcomposer.com 不更换也行,但是很慢,建议更换 2、进项目根目录(不是public) composer require w ...
分类:
其他好文 时间:
2020-07-04 14:58:55
阅读次数:
73
Your requirements could not be resolved to an installable set of packages. Problem 1 - phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the ...
分类:
其他好文 时间:
2020-07-04 11:39:20
阅读次数:
104
问题背景 在ContOS服务器上测试项目 解决方案 谷歌查询 解决步骤 降低matplotlib版本至2.2.2 pip3 install matplotlib==2.2.2 出现新的问题,ImportError: Matplotlib qt-based backends require an ex ...
分类:
编程语言 时间:
2020-07-03 23:38:57
阅读次数:
347
Koa 搭建服务 新建一个文件夹 koa_server,进入后 cnpm i -S koa 会生成 node_modules 依赖包,以及 package.json 创建文件 server.js,并写入 const Koa = require('koa'); const app = new Koa( ...
分类:
数据库 时间:
2020-07-03 19:14:07
阅读次数:
70
装包:npm install jquery --save 方式一 全局使用 1)main.js中引入 // jquery import $ from 'jquery' Vue.prototype.$ = $; 2)更改vue.config.js const webpack = require('we ...
分类:
Web程序 时间:
2020-07-03 19:12:59
阅读次数:
76
var url = require("url"), fs = require("fs"), http = require("http"), path = require("path"); var port = 8080 // 默认检测80端口 if (process.argv[2] '-p') { ...
分类:
其他好文 时间:
2020-07-02 18:25:45
阅读次数:
62
su - root输入了正确的密码但是一直报错,密码肯定是输入对的。这主要是因为权限的问题导致的。 Linux里面有一个文件,/etc/pam.d/su文件。 [chaofan@master ~]$ cat /etc/pam.d/su #%PAM-1.0 auth sufficient pam_ro ...
分类:
其他好文 时间:
2020-07-02 13:17:50
阅读次数:
197
~1.2.3表示: 1.2.3 <= 版本号 < 1.3.0 ^1.2.3表示: 1.2.3 <= 版本号 < 2.0.0 ~1.2 表示: 1.2.0 <= 版本号 < 2.0.0 安装格式 composer require "扩展包:版本号" composer require "扩展包 版本号" ...
分类:
其他好文 时间:
2020-07-02 10:39:43
阅读次数:
68