- 博客(6)
- 收藏
- 关注
原创 uniapp封装request异步请求
uniapp封装request请求复制粘贴,稍微改改就能用,不多说直接上代码!!request.js// 全局请求封装const token = '自己的token令牌,最好读取缓存中的'// const token = uni.getStorage('token')const apiUrl = 'https://v1.shopapi.tpfeps.com'const baseRequest = (url,method,params) => { return new Promise
2020-11-30 14:54:53 3024 2
转载 判断手机操作系统
···var u = navigator.userAgent, app = navigator.appVersion;var isAndroid = u.indexOf(‘Android’) > -1 || u.indexOf(‘Linux’) > -1; //如果输出结果是true就判定是android终端或者uc浏览器var isiOS = !!u.match(/(i[^;]...
2020-04-24 16:32:42 208
原创 js判断当前打开的设备
直接上干货!<script type="text/javascript"> function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs ...
2020-04-24 16:07:30 211
原创 JS blob加密
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"></head><body><h2>blob video demo</h2><video id="sound" width="...
2020-04-09 18:05:13 686 1
原创 JS移动端rem自适应
#JS移动端rem自适应function adaptive() { // 在标准 375px 适配下,100px = 1rem; var baseFontSize = 50; var baseWidth = 375; var set = function() { var clientWidth = document.documentElement...
2020-04-09 17:35:42 121
转载 Vue Mint-UI Datetime picker 中的起始时间和结束时间
有用!感谢这位大佬转载:https://liuxy0551.github.io/article/data-time-picker.html
2019-09-06 18:12:52 1535
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人