2021年2月22日
摘要: proxy: { "/api": { target: 'https://example.com', changeOrigin: true, secure: false, headers: { Referer: 'https://example.com' } } } target 要使用 Proxy  阅读全文
posted @ 2021-02-22 15:59 写最骚的代码 阅读(2446) 评论(0) 推荐(0)
  2021年2月19日
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> li{ list-style: none; } ul { display: flex; position: abs 阅读全文
posted @ 2021-02-19 10:04 写最骚的代码 阅读(402) 评论(0) 推荐(0)
  2021年1月8日
摘要: 数组的所有方法 1、concat()把元素衔接到数组中。 例子: var str1 = "Hello "; var str2 = "world!"; var n = str1.concat(str2); Hello world! 输出结果 2 every() 方法使用指定函数检测数组中的所有元素: 阅读全文
posted @ 2021-01-08 10:58 写最骚的代码 阅读(382) 评论(0) 推荐(0)
摘要: 转:https://blog.csdn.net/weixin_39749820/article/details/82869537 阅读全文
posted @ 2021-01-08 10:01 写最骚的代码 阅读(109) 评论(0) 推荐(0)
摘要: var encodeSearchKey = function(key) { const encodeArr = [{ code: '%', encode: '%25' }, { code: '?', encode: '%3F' }, { code: '#', encode: '%23' }, { c 阅读全文
posted @ 2021-01-08 09:39 写最骚的代码 阅读(3334) 评论(0) 推荐(0)
  2020年12月17日
摘要: # 全局安装n $ npm install -g n 失败后面加上 --force # 升级到最新稳定版 $ n stable # 升级到最新版 $ n latest # 升级到定制版 $ n v14.15.2 # 切换使用版本 $ n 7.10.0 (ENTER) # 删除某个版本 $ n rm 阅读全文
posted @ 2020-12-17 17:16 写最骚的代码 阅读(174) 评论(0) 推荐(0)
  2020年12月11日
摘要: sudo killall httpd && sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 阅读全文
posted @ 2020-12-11 17:02 写最骚的代码 阅读(642) 评论(0) 推荐(0)
  2020年11月23日
摘要: <template> <div style="height: 100%;"> <div @click="goView('i3')">gogogogogogo</div> <div id="i1" style="height: 100%;">1</div> <div id="i2" style="he 阅读全文
posted @ 2020-11-23 16:14 写最骚的代码 阅读(243) 评论(0) 推荐(0)
  2020年11月10日
摘要: /** *格式化时间 *yyyy-MM-dd hh:mm:ss */ export function formatDate(time, fmt) { if (time undefined || "") { return; } // 兼容ios if ((time + "").indexOf("-") 阅读全文
posted @ 2020-11-10 16:49 写最骚的代码 阅读(177) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> 阅读全文
posted @ 2020-11-10 11:33 写最骚的代码 阅读(1399) 评论(0) 推荐(0)