上一页 1 2 3 4 5 6 7 ··· 28 下一页
摘要: rand(min, max) { return parseInt(Math.random() * (max - min + 1) + min, 10); }, 阅读全文
posted @ 2020-07-01 10:19 jzfan 阅读(1528) 评论(0) 推荐(0) 编辑
摘要: index.html <head> ... <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=xxxxxx"></script> </head> vue.config.js module.exp 阅读全文
posted @ 2020-06-30 16:10 jzfan 阅读(178) 评论(0) 推荐(0) 编辑
摘要: export default class Validator { static required(val, msg) { if ((!val && val != 0) || val.length 0) { throw msg } return this } static mobile(val) { 阅读全文
posted @ 2020-06-05 20:48 jzfan 阅读(935) 评论(0) 推荐(0) 编辑
摘要: <div class="relative"> <video class="w-full h-full object-fill" id="ckplayer_a1" :src="url" x5-video-player-type="h5" preload="metadata" playsinline=" 阅读全文
posted @ 2020-04-27 21:11 jzfan 阅读(402) 评论(0) 推荐(0) 编辑
摘要: var link = location.href $.ajax({ url: 'your_url', //后台给你提供的接口 type: 'GET', data: { url: link }, async: true, dataType: 'json', success: function(data 阅读全文
posted @ 2020-04-02 00:26 jzfan 阅读(141) 评论(0) 推荐(0) 编辑
摘要: pm.test("get token", function() { var data = JSON.parse(responseBody) pm.collectionVariables.set("token", data.data) }) 集合变量 pm.collectionVariables.se 阅读全文
posted @ 2020-03-25 17:11 jzfan 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1. 拆分 $start = '08:30'; $end = '20:00'; $arr = []; for ($i = strtotime($start); $i <= strtotime($end); $i = $i + 60 * 30) { $arr[] = date("H:i", $i); 阅读全文
posted @ 2020-03-11 17:00 jzfan 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: import axios from './axios' export default class Base { constructor() {} post(url, data) { return new Promise((resolve, reject) => { axios .post(url, 阅读全文
posted @ 2020-03-10 16:22 jzfan 阅读(192) 评论(0) 推荐(0) 编辑
摘要: function qs(search) { if(typeof search !== "string" || !search) return search; return search.split("&").reduce((res, cur) => { const arr = cur.split(" 阅读全文
posted @ 2020-03-10 11:32 jzfan 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 生产环境打包到子目录 nginx 配置子目录路径 阅读全文
posted @ 2020-01-10 23:38 jzfan 阅读(1349) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 28 下一页