03 2020 档案
postman set token on login
摘要: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
PHP 半小时间隔时间段
摘要: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
vue api 父类
摘要: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
JS 获取url参数
摘要: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