-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1 lines (1 loc) · 16.2 KB
/
index.html
1
<!DOCTYPE html><html lang="null"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"><meta content="telephone=no" name="format-detection"><meta name="description"><title>牛牛's| blog</title><link rel="stylesheet" type="text/css" href="//fonts.neworld.org/css?family=Source+Code+Pro"><link rel="stylesheet" type="text/css" href="/css/style.css?v=2.0.1"><link rel="stylesheet" type="text/css" href="/css/highlight.css?v=2.0.1"><link rel="Shortcut Icon" href="/favicon.ico"><link rel="bookmark" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png"></head><body><div class="body_container"><div id="header"><div class="site-name"><h1 class="hidden">牛牛's| blog</h1><a id="logo" href="/.">牛牛's| blog</a><p class="description"></p></div><div id="nav-menu"><a href="/." class="current"><i class="fa fa-home"> 首页</i></a><a href="/archives/"><i class="fa fa-archive"> 归档</i></a><a href="/about/"><i class="fa fa-user"> 关于</i></a><a href="/atom.xml"><i class="fa fa-rss"> 订阅</i></a></div><div id="search-form"><div id="result-mask" class="hide"></div><label><input id="search-key" type="text" autocomplete="off" placeholder="search"></label><div id="result-wrap" class="hide"><div id="search-result"></div></div><div class="hide"><template id="search-tpl"><div class="item"><a href="/{path}" title="{title}"><div class="title">{title}</div><div class="time">{date}</div><div class="tags">{tags}</div></a></div></template></div></div></div><div id="layout" class="layout-g"><div class="layout-l"><div class="content_container"><div class="post"><h2 class="post-title"><a href="/2017/06/02/interface/">如何优雅的使用接口</a></h2><div class="post-meta"><p><span class="date">2017-06-02</span><span><a href="/categories/PHP/" class="category">PHP</a></span></p></div><div class="post-content"><p>嗯,6.1刚过完,我们不在是宝宝了,来吧,撸一篇接口的文章(interface).</p></div><p class="readmore"><a href="/2017/06/02/interface/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2017/10/06/mysql-lock/">《高性能MySQL》笔记 - MySQL 锁的基本类型</a></h2><div class="post-meta"><p><span class="date">2017-10-06</span><span><a href="/categories/MySQL/" class="category">MySQL</a></span></p></div><div class="post-content"><h3 id="MySQL-主要在两个层面上实现并发控制:服务器层和存储引擎层。"><a href="#MySQL-主要在两个层面上实现并发控制:服务器层和存储引擎层。" class="headerlink" title="MySQL 主要在两个层面上实现并发控制:服务器层和存储引擎层。"></a>MySQL 主要在两个层面上实现并发控制:服务器层和存储引擎层。</h3><p>当读写有冲突的时候,一般对于MySQL来说,是进行锁表操作的。</p></div><p class="readmore"><a href="/2017/10/06/mysql-lock/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2017/12/05/Linux 常用的机构命令/">Linux 的几个常用的命令</a></h2><div class="post-meta"><p><span class="date">2017-12-05</span><span><a href="/categories/Linux/" class="category">Linux</a></span></p></div><div class="post-content"><p>给某个文件权限(以后有时间总结一篇关于权限的文章)<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chown -R www:www /home/wwwroot</span><br></pre></td></tr></table></figure></p></div><p class="readmore"><a href="/2017/12/05/Linux 常用的机构命令/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2017/11/30/jqweui_toast/">jqweui loading 如何显示</a></h2><div class="post-meta"><p><span class="date">2017-11-30</span></p></div><div class="post-content"><p>首先吐槽一下 jqweui的官方手册,有的地方确实不是太完善。<br>不过现在做小程序的应该用官方的weui了。</p></div><p class="readmore"><a href="/2017/11/30/jqweui_toast/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2017/11/11/Ubuntu17.04+github+hexo 搭建博客/">Ubuntu17.04+github+hexo 搭建博客</a></h2><div class="post-meta"><p><span class="date">2017-11-11</span><span><a href="/categories/Linux/" class="category">Linux</a></span></p></div><div class="post-content"><h3 id="第一步"><a href="#第一步" class="headerlink" title="第一步:"></a>第一步:</h3><p> 首先安装nodejs,这个是hexo运行的基础环境,安装很简便:<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ sudo apt-get install nodejs</span><br></pre></td></tr></table></figure></p></div><p class="readmore"><a href="/2017/11/11/Ubuntu17.04+github+hexo 搭建博客/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2018/04/28/mysql建立索引/">【MySQL学习笔记】 MySQL 建立索引的思路和实例</a></h2><div class="post-meta"><p><span class="date">2018-04-28</span><span><a href="/categories/MySQL/" class="category">MySQL</a></span></p></div><div class="post-content"><h3 id="一、索引的分类"><a href="#一、索引的分类" class="headerlink" title="一、索引的分类"></a>一、索引的分类</h3><h4 id="1、普通索引"><a href="#1、普通索引" class="headerlink" title="1、普通索引"></a>1、普通索引</h4><h4 id="2、唯一索引"><a href="#2、唯一索引" class="headerlink" title="2、唯一索引"></a>2、唯一索引</h4><h4 id="3、全文索引"><a href="#3、全文索引" class="headerlink" title="3、全文索引"></a>3、全文索引</h4><p> 使用FULLTEXT参数可以设置为全文索引。全文索引只能创建在char,varchar或者 text 类型的字段上。</p></div><p class="readmore"><a href="/2018/04/28/mysql建立索引/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2018/04/18/sql会引起全表扫码的语句/">sql 会引起全表扫码的语句</a></h2><div class="post-meta"><p><span class="date">2018-04-18</span><span><a href="/categories/PHP/" class="category">PHP</a></span></p></div><div class="post-content"><h4 id="1、模糊查询效率很低:"><a href="#1、模糊查询效率很低:" class="headerlink" title="1、模糊查询效率很低:"></a>1、模糊查询效率很低:</h4><pre><code>like % ... % //会全表扫描</div><p class="readmore"><a href="/2018/04/18/sql会引起全表扫码的语句/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2018/04/16/高级php总结/">php基础总结</a></h2><div class="post-meta"><p><span class="date">2018-04-16</span><span><a href="/categories/PHP/" class="category">PHP</a></span></p></div><div class="post-content"><h2 id="一、常用魔术方法的触发时机?"><a href="#一、常用魔术方法的触发时机?" class="headerlink" title="一、常用魔术方法的触发时机?"></a>一、常用魔术方法的触发时机?</h2><p>1) <strong>autoload() :当程序实例化某个类,而该类没有在当前文件中被引入。此时会触发执行</strong>autoload()。程序希望通过该方法,自动引入这个类文件。该方法有一个参数,即就是那个忘记引入的类的名称。<strong>autoload()方法的工作原理是什么?当程序执行到实例化某个类的时候,如果在实例化前没有引入这个类文件,那么就自动执行</strong>autoload()函数。这个函数会根据实例化的类的名称来查找这个类文件的路径,当判断这个类文件路径下确实存在这个类文件后,就执行include或者require来载入该类,然后程序继续执行,如果这个路径下不存在该文件时就提示错误。使用自动载入的魔术函数可以不必要写很多个include或者require函数。</p></div><p class="readmore"><a href="/2018/04/16/高级php总结/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2015/04/05/php学习笔记/">php 生僻知识点</a></h2><div class="post-meta"><p><span class="date">2015-04-05</span><span><a href="/categories/PHP/" class="category">PHP</a></span></p></div><div class="post-content"><h3 id="类名前加’-’-与不加的区别"><a href="#类名前加’-’-与不加的区别" class="headerlink" title="类名前加’\’ 与不加的区别"></a>类名前加’\’ 与不加的区别</h3><h4 id="Example-1-在命名空间中访问全局类"><a href="#Example-1-在命名空间中访问全局类" class="headerlink" title="Example #1 在命名空间中访问全局类"></a>Example #1 在命名空间中访问全局类</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><?php</span><br><span class="line">namespace A\B\C;</span><br><span class="line">class Exception extends \Exception {}</span><br><span class="line"></span><br><span class="line"><span class="variable">$a</span> = new Exception(<span class="string">'hi'</span>); // <span class="variable">$a</span> 是类 A\B\C\Exception 的一个对象</span><br><span class="line"><span class="variable">$b</span> = new \Exception(<span class="string">'hi'</span>); // <span class="variable">$b</span> 是类 Exception 的一个对象</span><br><span class="line"></span><br><span class="line"><span class="variable">$c</span> = new ArrayObject; // 致命错误, 找不到 A\B\C\ArrayObject 类</span><br><span class="line">?></span><br></pre></td></tr></table></figure></div><p class="readmore"><a href="/2015/04/05/php学习笔记/">阅读更多</a></p></div><div class="post"><h2 class="post-title"><a href="/2018/04/13/常见的一些算法/">常见的一些算法</a></h2><div class="post-meta"><p><span class="date">2018-04-13</span><span><a href="/categories/PHP/" class="category">PHP</a></span></p></div><div class="post-content"><h2 id="算法题"><a href="#算法题" class="headerlink" title="算法题"></a>算法题</h2><p>1、遍历出一个文件夹下的所有文件和文件夹</p></div><p class="readmore"><a href="/2018/04/13/常见的一些算法/">阅读更多</a></p></div><nav class="page-navigator"><span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">下一页</a></nav></div></div><div class="layout-r"><div id="sidebar"><div class="search-pla"></div><div class="widget"><div class="widget-title"><i class="fa fa-xie"> 最新文章</i></div><ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2019/11/09/从零开始学习go语言/">从零开始学习go语言</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/04/28/mysql建立索引/">【MySQL学习笔记】 MySQL 建立索引的思路和实例</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/04/18/sql会引起全表扫码的语句/">sql 会引起全表扫码的语句</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/04/16/高级php总结/">php基础总结</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/04/16/正则学习笔记/">正则学习笔记</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/04/13/常见的一些算法/">常见的一些算法</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/12/05/Linux 常用的机构命令/">Linux 的几个常用的命令</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/12/05/搭建shadowsoks服务器/">搭建shadowsoks服务器</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/11/30/jqweui_toast/">jqweui loading 如何显示</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/11/11/Ubuntu17.04+github+hexo 搭建博客/">Ubuntu17.04+github+hexo 搭建博客</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-gui"> 分类</i></div><ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Linux/">Linux</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/MySQL/">MySQL</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/PHP/">PHP</a><span class="category-list-count">6</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/正则/">正则</a><span class="category-list-count">1</span></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-biao"> 标签</i></div><div class="tagcloud"><a href="/tags/weui/" style="font-size: 15px;">weui'</a> <a href="/tags/Linux/" style="font-size: 15px;">Linux</a> <a href="/tags/hexo/" style="font-size: 15px;">hexo</a> <a href="/tags/接口/" style="font-size: 15px;">接口</a> <a href="/tags/设计模式/" style="font-size: 15px;">设计模式</a> <a href="/tags/jqweui/" style="font-size: 15px;">jqweui</a> <a href="/tags/github/" style="font-size: 15px;">github</a> <a href="/tags/MySQl/" style="font-size: 15px;">MySQl</a> <a href="/tags/高并发/" style="font-size: 15px;">高并发</a> <a href="/tags/数据库锁/" style="font-size: 15px;">数据库锁</a> <a href="/tags/go/" style="font-size: 15px;">-go</a> <a href="/tags/MySQL/" style="font-size: 15px;">MySQL</a></div></div><div class="widget"><div class="widget-title"><i class="fa fa-archive"> 归档</i></div><ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/11/">November 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/">April 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">December 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/">November 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/">June 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/04/">April 2015</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-you"> 友情链接</i></div><ul></ul><a href="http://wangchujiang.com/linux-command/" title="Linux" target="_blank">Linux</a><ul></ul><a href="https://www.jianshu.com/nb/12331094/" title="设计模式(一)" target="_blank">设计模式(一)</a><ul></ul><a href="http://larabase.com/collection/5/post/143/" title="设计模式(二)" target="_blank">设计模式(二)</a><ul></ul><a href="http://blog.luoml.space/" title="Lucas‘blog" target="_blank">Lucas‘blog</a><ul></ul><a href="http://www.netcan666.com/" title="netCan" target="_blank">netCan</a></div></div></div></div><a id="totop" href="#top"></a><div id="footer"><div class="footer-info"><p><a href="/baidusitemap.xml">baidusitemap</a> | <a href="/atom.xml">订阅</a> | <a href="/about/">关于</a></p><p>本站总访问量:<i id="busuanzi_container_site_pv"><i id="busuanzi_value_site_pv"></i></i>次</p><p><span> Copyright ©<a href="/." rel="nofollow">niuniu.</a></span><span> Theme by<a rel="nofollow" target="_blank" href="https://github.com/chaooo/hexo-theme-BlueLake"> BlueLake.</a></span><span> Count by<a href="http://busuanzi.ibruce.info/"> busuanzi.</a></span><span> Powered by<a rel="nofollow" target="_blank" href="https://hexo.io"> Hexo.</a></span></p></div></div></div><script src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js" async></script><script type="text/javascript" src="/js/search.json.js?v=2.0.1"></script><script type="text/javascript" src="/js/totop.js?v=2.0.1" async></script></body></html>