随笔分类 -  js插件

摘要:function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { 阅读全文
posted @ 2020-12-02 16:09 毛栗的demo 阅读(56) 评论(0) 推荐(0)
摘要:const cheerio = require("cheerio"); const superagent = require("superagent"); const fs = require("fs"); const nodeSchedule = require("node-schedule"); 阅读全文
posted @ 2020-09-17 16:29 毛栗的demo 阅读(960) 评论(0) 推荐(0)
摘要:// 监听用户进来 或 用户出去 let vE = 'visibilitychange' if(document.webkitHidden != 'undefined') { //兼容 vE = 'webkitvisibilitychange' } function visibilityChange 阅读全文
posted @ 2020-09-08 17:19 毛栗的demo 阅读(96) 评论(0) 推荐(0)
摘要:import axios from 'axios' axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'; axios.defaults.headers.get['Content-Type'] = 阅读全文
posted @ 2020-07-14 19:25 毛栗的demo 阅读(319) 评论(0) 推荐(0)
摘要:// 文件下载 import JSZip from "jszip" import FileSaver from "file-saver" import { post } from 'axios' // 单文件下载 async function singleDownload(url,file) { t 阅读全文
posted @ 2020-07-14 19:08 毛栗的demo 阅读(125) 评论(0) 推荐(0)