-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 13.2 KB
/
index.html
File metadata and controls
1 lines (1 loc) · 13.2 KB
1
<!DOCTYPE HTML><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="google-site-verification" content=""><title>追梦</title><meta name="author" content="yidreamc"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"><meta property="og:site_name" content="追梦"><link href="/apple-touch-icon-precomposed.png" sizes="180x180" rel="apple-touch-icon-precomposed"><link rel="alternate" href="/atom.xml" title="追梦" type="application/atom+xml"><link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/m.min.css"><link rel="icon" type="image/x-icon" href="/favicon.ico"></head><body><a id="top"></a><div id="main"><div class="behind"> <a href="/" class="back black-color"><svg class="i-close" viewBox="0 0 32 32" width="22" height="22" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><path d="M2 30 30 2M30 30 2 2"></path></svg></a><div class="description"> </div></div><div class="container"><nav class="navigator"><nav class="navbar navbar-default navbar-fixed-top"><div class="nav-container"><div id="site_search" class=""> <input type="text" id="local-search-input" name="q" placeholder="search" class="form-control"></div><div id="local-search-result"></div><ul class="nav navbar-nav navbar-right"><li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><svg class="i-link" viewBox="0 0 32 32" width="22" height="22" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M18 8C18 8 24 2 27 5 30 8 29 12 24 16 19 20 16 21 14 17M14 24C14 24 8 30 5 27 2 24 3 20 8 16 13 12 16 11 18 15"></path></svg></a><ul class="dropdown-content"><li> <a href="/links.html">友情链接</a></li><li> <a href="https://github.com/yidreamc/">Github</a></li><li> <a href="/">关于我</a></li></ul></li><li class="archives"><a href="/archives"><svg class="i-archive" viewBox="0 0 32 32" width="22" height="22" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4 10 4 28 28 28 28 10M2 4 2 10 30 10 30 4ZM12 15 20 15"></path></svg></a></li></ul></div></nav></nav><ul class="posts"><div><li class="post-item"><h1 class="index-title"> <a href="/2018/10/19/防抖和节流/">js防抖实现</a></h1><div class="excerpt"> 防抖和节流都是为了限制函数的执行频次,达到节约资源的目的。 防抖:任务频繁触发的情况下,只有触发任务的时间超过一定时间间隔才会执行。 节流:在指定的时间间隔内执行一次 节流(throttle)以监听鼠标运动为例 function mov <a href="/2018/10/19/防抖和节流/">more</a></div><div class="index-meta"> <time datetime="2018-10-19T21:13:12.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 10-19</time></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/10/11/es6 export default踩坑/">es6 export default踩坑</a></h1><div class="excerpt"> 先说一下遇到的问题 // a.js let test = function() { } export default { test } // b.js import { test } from 'a.js' <a href="/2018/10/11/es6 export default踩坑/">more</a></div><div class="index-meta"> <time datetime="2018-10-11T22:23:16.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 10-11</time></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/09/20/前端安全/">前端安全</a></h1><div class="excerpt"> 虽然现在的浏览器和框架对这方面防范已经很完善了,基本都遇不到了,但是面试还是会问啊。 XSS跨站脚本攻击(Cross-site scripting,简称XSS)。恶意使用者可以把脚本注入到网页上,其他使用者在观看网页时及就会受到影响。 如何 <a href="/2018/09/20/前端安全/">more</a></div><div class="index-meta"> <time datetime="2018-09-20T15:50:16.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 09-20</time></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/09/16/自己实现call-apply-bind/">自己实现call,apply,bind</a></h1><div class="excerpt"> js的call和apply都可以改变this指向,调用函数,两者的作用相同,只是传参的方式不同。bind可以改变this指向,创建函数。也就是说call和apply改变指向之后会执行bind不会。 call(obj, arg1, arg2 <a href="/2018/09/16/自己实现call-apply-bind/">more</a></div><div class="index-meta"> <time datetime="2018-09-16T23:54:51.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 09-16</time> <svg class="i-tag" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="24" cy="8" r="2"></circle><path d="M2 18 18 2 30 2 30 14 14 30Z"></path></svg> <a href="/tags/js/">js</a></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/09/04/解决expo不会挑选网络的问题/">解决expo不会挑选网络的问题</a></h1><div class="excerpt"> expo是一组工具,库和服务,可让通过编写JavaScript来构建原生iOS和Android应用程序,现在react-native中就用的他。但我发现一个问题,明明正常的网络,但是就是连接不上。我的网络配置如下很明显应该使用的网络应该是标 <a href="/2018/09/04/解决expo不会挑选网络的问题/">more</a></div><div class="index-meta"> <time datetime="2018-09-04T22:31:17.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 09-04</time></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/08/31/中缀表达式的计算/">中缀表达式的计算</a></h1><div class="excerpt"> 常见的算式比如2+3、4*5+2这种都是中缀表达式,特点是运算符在操作数的中间,这种表达式对人来说还是比较有好的,但对于程序来说就不太有好了,因为运算符号包含了优先级,而且还有括号先计算这些规则。首先声明一下,这种表达式只是不太友好,并不是 <a href="/2018/08/31/中缀表达式的计算/">more</a></div><div class="index-meta"> <time datetime="2018-08-31T17:59:52.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 08-31</time></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/08/28/Number-、parseInt-、parseFloat-区别/">Number()、parseInt()、parseFloat()区别</a></h1><div class="excerpt"> 这三个函数都可以把非数值转换成数值 Number 布尔true转换1,false 0 数字返回本身 null返回0 undefined返回NaN 字符串 忽略字符串前后空格 字符串为空返回0 如果字符串中只含数字,会返回对应的数字,并且会忽 <a href="/2018/08/28/Number-、parseInt-、parseFloat-区别/">more</a></div><div class="index-meta"> <time datetime="2018-08-28T19:28:56.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 08-28</time> <svg class="i-tag" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="24" cy="8" r="2"></circle><path d="M2 18 18 2 30 2 30 14 14 30Z"></path></svg> <a href="/tags/js/">js</a></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/08/24/worktree解决多支依赖不同的问题/">worktree解决多支依赖不同的问题</a></h1><div class="excerpt"> 记得刚来公司的时候有人在群里提出了一个这样的问题首先先解释一下为什么会出现这个问题,因为nodejs的依赖被安装到了一个叫做node_modules的文件夹里了,因为大家各自电脑的系统不同,版本不同,所安装依赖的底层可能不同,也因为这个依赖 <a href="/2018/08/24/worktree解决多支依赖不同的问题/">more</a></div><div class="index-meta"> <time datetime="2018-08-24T13:09:59.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 08-24</time> <svg class="i-tag" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="24" cy="8" r="2"></circle><path d="M2 18 18 2 30 2 30 14 14 30Z"></path></svg> <a href="/tags/其他/">其他</a></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/08/23/自己实现一个模态框/">自己实现一个模态框</a></h1><div class="excerpt"> 面试中被问到如何实现一个模态框,当场懵逼,现在这么多的开源样式库,组件库,在这么方便的条件下我从来没有考虑过这种问题。回来之后静下心来仔细考虑了一下这个问题,其实也没有什么难的,给我一定的时间我应该可以在不查资料的情况下完成。 就抽空自己做 <a href="/2018/08/23/自己实现一个模态框/">more</a></div><div class="index-meta"> <time datetime="2018-08-23T20:04:31.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 08-23</time> <svg class="i-tag" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="24" cy="8" r="2"></circle><path d="M2 18 18 2 30 2 30 14 14 30Z"></path></svg> <a href="/tags/css/">css</a></div></li></div><hr><div><li class="post-item"><h1 class="index-title"> <a href="/2018/08/20/搭建travis-ci的本地构建环境/">搭建travis-ci的本地构建环境</a></h1><div class="excerpt"> 前端项目我一直是用travis-ci实现ci/cd的,平时出现的一些错误在日志上都可以直接看到,然后调整解决就行,但今天这个错误在web页的日志上无法看出来,而且我在本地环境构建没有任何问题,于是我想在本地搭建一个travis-ci的构建环 <a href="/2018/08/20/搭建travis-ci的本地构建环境/">more</a></div><div class="index-meta"> <time datetime="2018-08-20T21:58:36.000Z" itemprop="datePublished"><svg class="i-calendar" viewBox="0 0 32 32" width="14" height="14" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2 6 2 30 30 30 30 6ZM2 15 30 15M7 3 7 9M13 3 13 9M19 3 19 9M25 3 25 9"></path></svg> 08-20</time></div></li></div><hr></ul><ul class="pager"> <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/">Next</a></ul></div></div><footer class="page-footer"><div class="clearfix"></div><div class="clearfix"></div></footer><script src="/js/jquery.min.js"></script><script src="/js/search.min.js"></script><script type="text/javascript">$(".dropdown").click(function(o){var n=$(this);o.stopPropagation(),$(n).children(".dropdown-content")[$(n).children(".dropdown-content").hasClass("open")?"removeClass":"addClass"]("open")}),$(document).click(function(){$(".dropdown-content").removeClass("open")});var path="/search.xml";searchFunc(path,"local-search-input","local-search-result")</script></body></html>