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