🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
✨ .d.ts bundle + type-checking
🧐 Source maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Google和各种网站的IPv6服务hosts | |
| #利用IPv6技术翻墙,保证Google服务可用,校园网用户使用IPv6应该不收取上网费用(至少我们学校如此) | |
| #最下方有各种网站的IPv6hosts列表 | |
| #欢迎转载,请注明来源,谢谢 | |
| #本文的发布地址:http://docs.google.com/View?id=dfkdmxnt_61d9ck9ffq | |
| #本文的共享链接:https://docs.google.com/View?docID=0ARhAbsvps1PlZGZrZG14bnRfOTVmZzR4NjRkdA&revision=_latest | |
| #表格版的host列表地址:http://spreadsheets.google.com/ccc?key=0AhhAbsvps1PldEVXVzBkR3hBaWFnbEQ0OWIwMU5ycmc&hl=zh_CN | |
| #Google IPv6 地址及对应证书列表(不再细分):https://docs.google.com/Doc?docid=0ARhAbsvps1PlZGZrZG14bnRfOTVmZzR4NjRkdA&hl=en |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable @typescript-eslint/no-unsafe-assignment */ | |
| import { reactive, toRefs } from 'vue'; | |
| import axios,{ AxiosRequestConfig, AxiosError, AxiosResponse } from 'axios'; | |
| export enum Status { | |
| IDLE = 'idle', | |
| LOADING = 'loading', | |
| SUCCESS = 'success', | |
| ERROR = 'error', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getUrlParam(name) { | |
| var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| var r = window.location.search.substr(1).match(reg); | |
| if (r != null) return unescape(r[2]); return null; | |
| } | |
| function replaceParamVal (oUrl, paramName, replaceWith) { | |
| var re = new RegExp('(' + paramName + '=)([^&]*)', 'gi') | |
| var nUrl = oUrl.replace(re, paramName + '=' + replaceWith) | |
| console.log('replaceParamVal:' + nUrl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * NeuQuant Neural-Net Quantization Algorithm | |
| * ------------------------------------------ | |
| * | |
| * Copyright (c) 1994 Anthony Dekker | |
| * | |
| * NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See | |
| * "Kohonen neural networks for optimal colour quantization" in "Network: | |
| * Computation in Neural Systems" Vol. 5 (1994) pp 351-367. for a discussion of | |
| * the algorithm. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**********************计算两经纬度的距离**************************/ | |
| var EARTHRADIUS = 6370996.81; | |
| function _getRange(v, a, b) { | |
| if (a != null) { | |
| v = Math.max(v, a); | |
| } | |
| if (b != null) { | |
| v = Math.min(v, b); | |
| } | |
| return v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var browser = { | |
| versions: function () { | |
| var ua = navigator.userAgent, | |
| app = navigator.appVersion; | |
| return { //移动终端浏览器版本信息 | |
| trident: ua.indexOf('Trident') > -1, //IE内核 | |
| presto: ua.indexOf('Presto') > -1, //opera内核 | |
| webKit: ua.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 | |
| gecko: ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') == -1, //火狐内核 | |
| mobile: !!ua.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function BrowserType() | |
| { | |
| var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 | |
| var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器 | |
| // var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器 | |
| var isIE=window.ActiveXObject || "ActiveXObject" in window | |
| // var isEdge = userAgent.indexOf("Windows NT 6.1; Trident/7.0;") > -1 && !isIE; //判断是否IE的Edge浏览器 | |
| var isEdge = userAgent.indexOf("Edge") > -1; //判断是否IE的Edge浏览器 | |
| var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器 | |
| var isSafari = userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") == -1; //判断是否Safari浏览器 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function deepCopy (obj, cache = []) { | |
| function find (list, f) { | |
| return list.filter(f)[0] | |
| } | |
| // just return if obj is immutable value | |
| if (obj === null || typeof obj !== 'object') { | |
| return obj | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('input').on("blur",function(){ | |
| document.activeElement.scrollIntoViewIfNeeded(); | |
| }) |
NewerOlder