摘要: /** * * @param inputByte * 待解压缩的字节数组 * @return 解压缩后的字节数组 * @throws IOException */ public static byte[] uncompress(byte[] inputByte) throws IOException 阅读全文
posted @ 2021-09-08 17:07 兔小兔 阅读(460) 评论(0) 推荐(0) 编辑
摘要: package com.winxur.controller; import org.apache.commons.io.IOUtils; import org.springframework.http.HttpStatus; import org.springframework.http.Media 阅读全文
posted @ 2021-02-26 09:53 兔小兔 阅读(377) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/antchfx/htmlquery" "github.com/kirinlabs/HttpRequest" "labix.org/v2/mgo" "labix.org/v2/mgo/bson" "strconv" "st 阅读全文
posted @ 2020-06-29 16:19 兔小兔 阅读(189) 评论(0) 推荐(0) 编辑
摘要: const request = require('request'); const iconv = require('iconv-lite'); const jsdom = require('jsdom').JSDOM; const fs = require('fs') const BS_URL = 'https://www.menworld.org' request({ url: `... 阅读全文
posted @ 2019-09-10 16:45 兔小兔 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 环境 Centos7.4 工具 Xshell(远程终端模拟) FileZilla(给linux传输文件) 准备工作 1、 卸载MariaDB 注意:一定要将mariaDB包和自带mysql包卸载干净,否则安装时出现各种奇妙错误,导致失败。 2、卸载已有Mysql 3、安装依赖 注意:先装好依赖,再装 阅读全文
posted @ 2019-07-17 16:54 兔小兔 阅读(2087) 评论(0) 推荐(2) 编辑
摘要: const file = document.getElementById('file') as HTMLInputElement; const imga = document.getElementsByTagName('img')[0] as HTMLImageElement; file.addEventListener('change', function () { let rea... 阅读全文
posted @ 2019-07-09 13:39 兔小兔 阅读(618) 评论(0) 推荐(0) 编辑
摘要: node中,http模块也可作为客户端使用(发送请求),第三方模块request对其使用方法进行了封装,操作更方便!所以来介绍一下request模块 1.安装request模块 cnpm install request --save 基本形式 //request(options,callback) 阅读全文
posted @ 2019-06-21 11:22 兔小兔 阅读(324) 评论(0) 推荐(0) 编辑
摘要: { "extraBabelPlugins": [ ["import", { "libraryName": "antd", "libraryDirectory": "lib", "style": "css" }] ] } 阅读全文
posted @ 2019-06-13 09:26 兔小兔 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: jango 模型是与数据库相关的,与数据库相关的代码一般写在 models.py 中,Django 支持 sqlite3, MySQL, PostgreSQL等数据库,只需要在settings.py中配置即可,不用更改models.py中的代码,丰富的API极大的方便了使用。 本节的最后有源代码,但 阅读全文
posted @ 2019-06-04 16:12 兔小兔 阅读(155) 评论(0) 推荐(0) 编辑
摘要: TypeScript与javaScript TypeScript是javaScript的超集,意思是TypeScript包括javaScript,javaScript支持的东西,TypeScript都支持 vscode配置ts自动转换成js文件 全局安装typescript 新建项目,生成tscon 阅读全文
posted @ 2019-05-23 10:59 兔小兔 阅读(10265) 评论(0) 推荐(0) 编辑