会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
写最骚的代码
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年3月9日
macOS终端node版本管理n
摘要: sudo npm cache clean -f //清除nodejs的cache: sudo npm install -g n //使用npm安装n模块 npm view node versions // node所有版本 sudo n latest // 升级到最新版本 sudo n stable
阅读全文
posted @ 2021-03-09 15:26 写最骚的代码
阅读(262)
评论(0)
推荐(0)
2021年2月22日
vue.config.js代理https请求头接口
摘要: proxy: { "/api": { target: 'https://example.com', changeOrigin: true, secure: false, headers: { Referer: 'https://example.com' } } } target 要使用 Proxy
阅读全文
posted @ 2021-02-22 15:59 写最骚的代码
阅读(2484)
评论(0)
推荐(0)
2021年2月19日
纯css实现tab下划线跟随
摘要: <!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 写最骚的代码
阅读(410)
评论(0)
推荐(0)
2021年1月8日
Array数组的所有方法
摘要: 数组的所有方法 1、concat()把元素衔接到数组中。 例子: var str1 = "Hello "; var str2 = "world!"; var n = str1.concat(str2); Hello world! 输出结果 2 every() 方法使用指定函数检测数组中的所有元素:
阅读全文
posted @ 2021-01-08 10:58 写最骚的代码
阅读(393)
评论(0)
推荐(0)
toLocaleString相当强大的API
摘要: 转:https://blog.csdn.net/weixin_39749820/article/details/82869537
阅读全文
posted @ 2021-01-08 10:01 写最骚的代码
阅读(111)
评论(0)
推荐(0)
Uncaught URIError: URI malformed at decodeURIComponent (<anonymous>)
摘要: var encodeSearchKey = function(key) { const encodeArr = [{ code: '%', encode: '%25' }, { code: '?', encode: '%3F' }, { code: '#', encode: '%23' }, { c
阅读全文
posted @ 2021-01-08 09:39 写最骚的代码
阅读(3431)
评论(0)
推荐(0)
2020年12月17日
MacOs node命令行升级
摘要: # 全局安装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 写最骚的代码
阅读(198)
评论(0)
推荐(0)
2020年12月11日
MacOs系统nginx启动 80端口被占用解决方法
摘要: sudo killall httpd && sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist
阅读全文
posted @ 2020-12-11 17:02 写最骚的代码
阅读(663)
评论(0)
推荐(0)
2020年11月23日
javascript一行代码实现锚点功能
摘要: <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 写最骚的代码
阅读(258)
评论(0)
推荐(0)
2020年11月10日
个人收藏常用JS方法
摘要: /** *格式化时间 *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 写最骚的代码
阅读(192)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页