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 写最骚的代码 阅读(370) 评论(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 写最骚的代码 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/weixin_39749820/article/details/82869537 阅读全文
posted @ 2021-01-08 10:01 写最骚的代码 阅读(102) 评论(0) 推荐(0) 编辑
摘要: var encodeSearchKey = function(key) { const encodeArr = [{ code: '%', encode: '%25' }, { code: '?', encode: '%3F' }, { code: '#', encode: '%23' }, { c 阅读全文
posted @ 2021-01-08 09:39 写最骚的代码 阅读(3054) 评论(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 写最骚的代码 阅读(167) 评论(0) 推荐(0) 编辑
  2020年12月11日
摘要: sudo killall httpd && sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 阅读全文
posted @ 2020-12-11 17:02 写最骚的代码 阅读(615) 评论(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 写最骚的代码 阅读(223) 评论(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 写最骚的代码 阅读(169) 评论(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 写最骚的代码 阅读(1175) 评论(0) 推荐(0) 编辑
  2020年8月10日
摘要: 1.安装vue环境创建项目,注册npm账号 npm install -g @vue/cli vue create my-component https://www.npmjs.com/signup //npm账号注册地址 npm add user//或者命令行注册,按照提示依次输入 注:请注意你的n 阅读全文
posted @ 2020-08-10 16:04 写最骚的代码 阅读(661) 评论(0) 推荐(0) 编辑