一. 组件介绍 要实现前端纯js导出word文档,我们需要用到docxtemplater,jszip-utils,file-saver三个组件,接下来简要的介绍以下三个组件。 1、docxtemplater 介绍 docxtemplater是一种邮件合并工具,它以编程方式使用,处理条件、循环,并且可 ...
分类:
其他好文 时间:
2020-09-24 21:26:42
阅读次数:
37
kafka运行一段时间挂掉 查看日志: 修改./kafka/config/server.properties (修改日志存放位置) log.dirs=/tmp/kafka-logs ...
分类:
其他好文 时间:
2020-09-24 21:01:24
阅读次数:
54
package hellopeace; // 信1905-2 20194199 刘佳琦 import java.util.Scanner; import java.io.File; import java.io.IOException; import java.io.InputStream; imp ...
分类:
编程语言 时间:
2020-09-24 20:58:25
阅读次数:
31
.pro文件 在使用Qt向导生成的应用程序.pro文件格式如下: QT += core gui //包含的模块 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets //大于Qt4版本 才包含widget模块 TARGET = QtTest //应用程序名 ...
分类:
其他好文 时间:
2020-09-24 00:05:27
阅读次数:
46
1. 打开idea,”file“ -> "new" -> "module" -> "spring initilizer" ····->"web" ->"spring web" 2. 搭建依赖 修改pom.xml 配置文件,加入依赖项。 <dependency> <groupId>org.spring ...
分类:
编程语言 时间:
2020-09-24 00:04:18
阅读次数:
40
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
分类:
其他好文 时间:
2020-09-24 00:03:11
阅读次数:
34
首先创建 itemSpider 在spiders 里面创建 item_spider.py 输入 """ 语言版本: python:3.6.1 scrapy:1.3.3 """ import scrapy import re class itemSpider(scrapy.Spider): name ...
分类:
移动开发 时间:
2020-09-23 23:57:23
阅读次数:
70
1.需要安装redis/rediscluster #!/usr/bin/env python3.7.4 # -*- coding:utf-8 -*- # # File: rds2rdsCluster.py # Project: 将单点redis的数据迁移到cluster # Author: Aven ...
分类:
其他好文 时间:
2020-09-23 23:56:52
阅读次数:
56
#全局查询日志(测试环境化使用) ##配置启用 #my.cnf中 #开启 general_log=1 #记录日志文件的路径 general_log_file=/path/logfile #输出格式 log_output=FILE ##编码启用 set global general_log = 1; ...
分类:
数据库 时间:
2020-09-23 23:23:26
阅读次数:
64
Nginx用户认证配置用户认证:以bbs.jinkai.cc.conf为例vim/etc/nginx/conf.d/bbs.jinkai.cc.conf添加location~admin.php{auth_basic"Auth";auth_basic_user_file/etc/nginx/user_passwd;fastcgi_pass127.0.0.1:9000;fastcg
分类:
其他好文 时间:
2020-09-23 23:12:54
阅读次数:
38