随笔分类 - js插件
摘要:function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) {
阅读全文
摘要:const cheerio = require("cheerio"); const superagent = require("superagent"); const fs = require("fs"); const nodeSchedule = require("node-schedule");
阅读全文
摘要:// 监听用户进来 或 用户出去 let vE = 'visibilitychange' if(document.webkitHidden != 'undefined') { //兼容 vE = 'webkitvisibilitychange' } function visibilityChange
阅读全文
摘要:import axios from 'axios' axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'; axios.defaults.headers.get['Content-Type'] =
阅读全文
摘要:// 文件下载 import JSZip from "jszip" import FileSaver from "file-saver" import { post } from 'axios' // 单文件下载 async function singleDownload(url,file) { t
阅读全文
浙公网安备 33010602011771号