Skip to content

Instantly share code, notes, and snippets.

View weisiwu's full-sized avatar
🏠
Working from home

wei weisiwu

🏠
Working from home
  • 矿工
  • 青青草原
View GitHub Profile
@weisiwu
weisiwu / download_methods.js
Created December 30, 2022 03:32
node 下载图片 -- 1
// 1、内置https+fs下载
const fs = require('fs')
const https = require('https')
const url = 'GFG.jpeg'
https.get(url, (res) => {
const path = `${__dirname}/files/img.jpeg`
const filePath = fs.createWriteStream(path)
res.pipe(filePath)
@weisiwu
weisiwu / bootstrapTable-server-pagination-modify.html
Created August 10, 2017 01:59
bootstrap table server pagination 保存翻页前状态
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bootstrapTable server pagination</title>
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap-table/1.11.1/bootstrap-table.min.css">
<style type="text/css">
#tableCon {
width: 800px;
@weisiwu
weisiwu / bootstrapTable-server-pagination.html
Last active August 10, 2017 02:00
bootstrap table server-pagination
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bootstrapTable server pagination</title>
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap-table/1.11.1/bootstrap-table.min.css">
<style type="text/css">
#tableCon {
width: 800px;
@weisiwu
weisiwu / bootstrapTable-client-pagination.html
Last active August 10, 2017 02:01
bootstrap table client pagination
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bootstrapTable client pagination</title>
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap-table/1.11.1/bootstrap-table.min.css">
<style type="text/css">
#tableCon {
width: 800px;