<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Aidan's blog</title><link>http://www.pcak.cn/</link><description></description><item><title>雅虎给出了优化网站加载速度的34条法则</title><link>http://www.pcak.cn/?id=9</link><description>&lt;p&gt;雅虎给出了优化网站加载速度的34条法则（包括Yslow规则22条） 详细说明，下载转发 ponytail 的译文（来自帕兰映像）。&lt;/p&gt;
&lt;p&gt;1.Minimize HTTP Requests 减少HTTP请求&lt;/p&gt;
&lt;p&gt;图片、css、script、flash等等这些都会增加http请求数，减少这些元素的数量就能减少响应时间。把多个JS、CSS在可能的情况下写进一个文件，页面里直接写入图片也是不好的做法，应该写进CSS里，利用 CSS sprites 将小图拼合后利用background来定位。&lt;br&gt;2.Use a Content Delivery Network 利用CDN技术&lt;/p&gt;
&lt;p&gt;CDN 确实是好东西，8过服务器提供商的这项服务一般是要收费的，我以前买的国内空间是有这个的但是我当时根本不知道啥用，现在没了。。。&lt;br&gt;3.Add an Expires or a Cache-Control Header 设置头文件过期或者静态缓存&lt;/p&gt;
&lt;p&gt;浏览器会用缓存来减少http请求数来加快页面加载的时间，如果页面头部加一个很长的过期时间，浏览器就会一直缓存页面里的元素。不过这样如果 页面里的东西变动的话就要改名字了，否则用户端不会主动刷新，看自己衡量了~ 这项可以通过修改.htaccess文件来实现。&lt;br&gt;4.Gzip Components Gzip压缩&lt;/p&gt;
&lt;p&gt;Gzip格式是一种很普遍的压缩技术，几乎所有的浏览器都有解压Gzip格式的能力，而且它可以压缩的比例非常大，一般压缩率为85%。压缩没压缩，可以到 这里 做下测试。&lt;br&gt;5.Put Stylesheets at the Top 把CSS放顶部&lt;/p&gt;
&lt;p&gt;让浏览者能尽早的看到网站的完整样式。&lt;br&gt;6.Put Scripts at the Bottom 把JS放底部&lt;/p&gt;
&lt;p&gt;网站呈现完毕后再进行功能设置，当然这些JS要在你的加载过程中不影响内容表现。&lt;/p&gt;
&lt;p&gt;7.Avoid CSS Expressions 避免CSS Expressions&lt;/p&gt;
&lt;p&gt;CSS表达式很可怕，这个只被IE支持的东西执行时候的运算量非常大，你移动一下鼠标它都要进行重计算的，但有时候为了做浏览器的兼容必须要用到这个||| IE6去死去死！~&lt;br&gt;8.Make JavaScript and CSS External 将JS和CSS外链&lt;/p&gt;
&lt;p&gt;前面讲到了缓存这个事情，一些较为公用的JS和CSS，我们可以使用外链的形式，譬如我就是从Google外链来的jQuery文件，如果我的浏览者在浏览别的使用了这个外链文件的网站时已经下载并缓存了这个文件，那么他在浏览我的网站的时候就不需要再进行下载了！~&lt;br&gt;9.Reduce DNS Lookups 减少DNS查找&lt;/p&gt;
&lt;p&gt;貌似是要减少网站从外部调用资源，我的Google分析和picasa的外链图片都算在里面了。&lt;br&gt;10.Minify JavaScript and CSS 减小JS和CSS的体积&lt;/p&gt;
&lt;p&gt;写JS和CSS都是有技巧的，用最少的代码实现同样的功能，减少空白，增强逻辑性，用缩写方式等等，当然也有不少工具也能够帮你实现这一点。&lt;/p&gt;
&lt;ol start=&quot;11&quot;&gt;
&lt;li&gt;Avoid Redirects 避免重定向&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;再写入链接时，虽然”&lt;a href=&quot;http://www&quot;&gt;http://www&lt;/a&gt;. today-s-ooxx. com”和”&lt;a href=&quot;http://www&quot;&gt;http://www&lt;/a&gt;. today-s-ooxx. com/” 仅有一个最后的”/”只差，但是结果是不同的，服务器需要花时间把前者重定向为后者然后进行跳转，这个要自己注意，也可以在Apache里用Alias 或者mod_rewrite或者DirectorySlash解决。&lt;/p&gt;
&lt;ol start=&quot;12&quot;&gt;
&lt;li&gt;Remove Duplicate Scripts 删除重复脚本&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;重复调用的代码浏览器并不会识别忽略，而是会再次运算一遍，这当然是大大的浪费。&lt;/p&gt;
&lt;ol start=&quot;13&quot;&gt;
&lt;li&gt;Configure ETags 配置ETags&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;搞不清楚咋回事，总之我是在. htaccess里把它删除了。&lt;/p&gt;
&lt;ol start=&quot;14&quot;&gt;
&lt;li&gt;Make Ajax Cacheable 缓存Ajax&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Ajax是实时响应的，在浏览器接收到新的数据前，旧的数据被缓存，这样能够更好的提高效率。&lt;/p&gt;
&lt;ol start=&quot;15&quot;&gt;
&lt;li&gt;Flush the Buffer Early 尽早的释放缓冲&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;当用户进行页面请求时，服务器端需要花费200到500毫秒时间来拼合HTML，将写在head与body之间，释放缓冲，这样可以将文件头先发送出去，然后再发送文件内容，提高效率。&lt;/p&gt;
&lt;ol start=&quot;16&quot;&gt;
&lt;li&gt;Use GET for AJAX Requests 用GET方式进行AJAX请求&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Get 方法和服务器只有一次交互（发送数据），而 Post 要两次（发送头部再发送数据）。&lt;/p&gt;
&lt;ol start=&quot;17&quot;&gt;
&lt;li&gt;Post-load Components 延迟加载组件&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;最先加载必须的组件进行页面初始化，然后再加载其他，YUI Image Loader 是很好的例子。&lt;/p&gt;
&lt;ol start=&quot;18&quot;&gt;
&lt;li&gt;Preload components 预加载组件&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;提前加载以后可能用到的东西，和延迟加载并不冲突，它的目的是为后续请求提供更快的响应，参见Google首页上的CSS sprites应用。&lt;/p&gt;
&lt;ol start=&quot;19&quot;&gt;
&lt;li&gt;Reduce the Number of DOM Elements 减少DOM元素数量&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;复杂的页面结构意味着更长的下载及响应时间，更合理更高效的使用标签来架构页面，是好的前端的必备条件。&lt;/p&gt;
&lt;ol start=&quot;20&quot;&gt;
&lt;li&gt;Split Components Across Domains 跨域分离组件&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;页面组件多个来源可以增大你的平行下载量，但注意不要过多，超过2-4个域名会引起上面说到的DNS查找浪费。&lt;/p&gt;
&lt;ol start=&quot;21&quot;&gt;
&lt;li&gt;Minimize the Number of iframes 减少iframe数量&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;需要更有效的利用 ifames。&lt;br&gt;iframe 优点：有利于下载缓慢的广告等第三方内容，安全沙箱，并行下载脚本&lt;br&gt;iframe 缺点：即使为空也会有较大资源消耗，会阻止页面的onload，非语义&lt;/p&gt;
&lt;ol start=&quot;22&quot;&gt;
&lt;li&gt;No 404s 不要出现404页面&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;站点本身里（非搜索结果）出现404页面，无意义的404页面会影响用户体验并且会消耗服务器资源。&lt;/p&gt;
&lt;ol start=&quot;23&quot;&gt;
&lt;li&gt;Reduce Cookie Size 减小Cookie&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Cookie在服务器及浏览器之间的通过文件头进行交换，尽可能减小Cookie体积，设置合理的过期时间，能够很好的提高效率。&lt;/p&gt;
&lt;ol start=&quot;24&quot;&gt;
&lt;li&gt;Use Cookie-free Domains for Components 对组件使用无Cookie的域名&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;对静态组件的Cookie读取是一种浪费，使用另一个无Cookie的域名来存放你的静态组件式一个好方法，或者也可以在Cookie中只存放带www的域名。&lt;/p&gt;
&lt;ol start=&quot;25&quot;&gt;
&lt;li&gt;Minimize DOM Access 减少DOM的访问次数&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;JS访问DOM是很慢的，尽量不要用JS来设置页面布局。&lt;/p&gt;
&lt;ol start=&quot;26&quot;&gt;
&lt;li&gt;Develop Smart Event Handlers 开发灵活的事件处理句柄&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;DOM树上过多的元素被加入事件句柄的话，反应效率肯定会低，YUI事件工具有一个 onAvailable 方法可以帮助你灵活的设置DOM事件句柄&lt;/p&gt;
&lt;ol start=&quot;27&quot;&gt;
&lt;li&gt;Choose &amp;lt; link &amp;gt;over &lt;a href=&quot;https://github.com/import&quot; title=&quot;&amp;#64;import&quot; class=&quot;at-link&quot;&gt;@import&lt;/a&gt; 使用&amp;lt; link &amp;gt;而非 &lt;a href=&quot;https://github.com/import&quot; title=&quot;&amp;#64;import&quot; class=&quot;at-link&quot;&gt;@import&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;在IE中使用&lt;a href=&quot;https://github.com/import&quot; title=&quot;&amp;#64;import&quot; class=&quot;at-link&quot;&gt;@import&lt;/a&gt;就和在页面底部用&amp;lt; link &amp;gt;一样，我们前面说要把&amp;lt; link &amp;gt;放顶部的。&lt;/p&gt;
&lt;ol start=&quot;28&quot;&gt;
&lt;li&gt;Avoid Filters 避免过滤器的使用&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;如果需要Alpha透明，不要使用AlphaImageLoader，它效率低下而且只对IE6及以下的版本适用，用PNG8图片。如果你非要使用，加上_filter以免影响IE7+用户。&lt;/p&gt;
&lt;ol start=&quot;29&quot;&gt;
&lt;li&gt;Optimize Images 优化图片&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;将你的GIF转为PNG8会是个减小体积的好办法，另外有很多方法处理你的JPG及PNG图片以达到优化效果。&lt;/p&gt;
&lt;ol start=&quot;30&quot;&gt;
&lt;li&gt;Optimize CSS Sprites 优化CSS Sprites&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;在CSS Sprites中竖直并尽量紧凑的排列图片，尽量将颜色相似的图片排在一起，会减小图片本身的大小及提高页面图片显示速度。&lt;/p&gt;
&lt;ol start=&quot;31&quot;&gt;
&lt;li&gt;Don’t Scale Images in HTML 不要在HTML中缩放图片&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;图片要用多大的就用多大的，1000X1000的图片被width=”100″ height=”100″以后，本身的KB数是不会减少的。&lt;/p&gt;
&lt;ol start=&quot;32&quot;&gt;
&lt;li&gt;Make favicon. ico Small and Cacheable 缩小favicon. ico的大小并缓存它&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;站点的浏览器ICO应该不是经常换吧，那就长时间的缓存它，并且最好控制在1K以下。&lt;/p&gt;
&lt;ol start=&quot;33&quot;&gt;
&lt;li&gt;Keep Components under 25K 保证组件在25K以下&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;iPhone不能缓存25K以上的组件，并且这还是要在被压缩前。&lt;/p&gt;
&lt;ol start=&quot;34&quot;&gt;
&lt;li&gt;Pack Components into a Multipart Document 将组件打包进一个多部分的文档中&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;就好像在邮件中加入附件一样，一个HTTP请求就够了，但是这一技术需要确保你的代理支持，iPhone就不支持。&lt;/p&gt;
</description><pubDate>Tue, 14 May 2019 17:26:29 +0800</pubDate></item><item><title>链接快速入口汇总</title><link>http://www.pcak.cn/?id=8</link><description>&lt;h1 id=&quot;h1-u94FEu63A5u6C47u603B&quot;&gt;&lt;a name=&quot;链接汇总&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;链接汇总&lt;/h1&gt;&lt;h2 id=&quot;h2-u6846u67B6u6587u6863&quot;&gt;&lt;a name=&quot;框架文档&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;框架文档&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/laravel/5.8&quot;&gt;laravel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/lumen/5.7&quot;&gt;Lumen&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://vuejscaff.com/v2/guide/index.html&quot;&gt;vue&lt;/a&gt;&lt;h2 id=&quot;h2-composer-&quot;&gt;&lt;a name=&quot;composer依赖包文档&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;composer依赖包文档&lt;/h2&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/dingo-api/2.0.0&quot;&gt;dinggo-api&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/nova/1.0&quot;&gt;Laravel Nova&lt;/a&gt;&lt;h2 id=&quot;h2-vue-&quot;&gt;&lt;a name=&quot;vue扩展包文档&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;vue扩展包文档&lt;/h2&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://router.vuejs.org/zh/&quot;&gt;vue-router&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.runoob.com/vue2/vuejs-ajax.html&quot;&gt;vue-resource&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://vuex.vuejs.org/zh/guide/&quot;&gt;vuex&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-u6DF1u5165u7CFBu5217&quot;&gt;&lt;a name=&quot;深入系列&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;深入系列&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/laravel-core-concept/5.5&quot;&gt;深入laravel核心&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://laravelacademy.org/programmer-internal-skills-series#data-structure-and-algorithm&quot;&gt;程序员内功修炼系列 2019 版&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://laravelacademy.org/laravel-from-appreciate-to-artisan&quot;&gt;Laravel 从学徒到工匠精校版&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://laravelacademy.org/laravel-tutorial-5_7&quot;&gt;Laravel 从入门到精通系列教程&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-u5927u795E&quot;&gt;&lt;a name=&quot;大神&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;大神&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://baijunyao.com/&quot;&gt;白俊遥&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://mengkang.net/&quot;&gt;周梦康&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-u6C47u603B&quot;&gt;&lt;a name=&quot;汇总&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;汇总&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learnku.com/laravel/docs&quot; title=&quot;Laravel 社区文档&quot;&gt;Laravel 社区文档&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/laravel/wikis&quot;&gt;wikis文档&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/laravel/projects/filter/laravel-library&quot;&gt;扩展包排行&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://cs.laravel-china.org/&quot;&gt;Laravel 5.1 LTS 速查表&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-u6559u7A0B&quot;&gt;&lt;a name=&quot;教程&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;教程&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://segmentfault.com/lives&quot;&gt;思否教堂&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/courses/laravel-intermediate-training/5.7&quot;&gt;Laravel 教程 - Web 开发实战进阶&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/courses/laravel-advance-training/5.7&quot;&gt;Laravel 教程 - 实战构架 API 服务器&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/courses/laravel-shop/5.7&quot;&gt;Laravel 教程 - 电商实战&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/courses/ecommerce-advance/5.7&quot;&gt;Laravel 教程 - 电商进阶&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-php-&quot;&gt;&lt;a name=&quot;php相关&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;php相关&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://laravel-china.github.io/php-the-right-way/&quot;&gt;php之道&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/laravel/composer&quot;&gt;Composer 中文镜像&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/composer/2018&quot;&gt;composer文档&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/elasticsearch-php/6.0&quot;&gt;Elasticsearch-PHP 中文文档&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/psr&quot;&gt;PHP PSR 标准规范&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/php-design-patterns/2018&quot;&gt;PHP 设计模式全集&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://xianyunyh.gitbooks.io/php-interview/&quot;&gt;面试汇总&lt;/a&gt;&lt;h1 id=&quot;h1-u5F00u53D1u89C4u8303&quot;&gt;&lt;a name=&quot;开发规范&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;开发规范&lt;/h1&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://learnku.com/docs/laravel-specification/5.5&quot;&gt;Laravel 项目开发规范&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
</description><pubDate>Thu, 21 Mar 2019 15:31:28 +0800</pubDate></item><item><title>学习vue的一些笔记备忘</title><link>http://www.pcak.cn/?id=7</link><description>&lt;h1 id=&quot;h1-vue-&quot;&gt;&lt;a name=&quot;vue实例的生命周期&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;vue实例的生命周期&lt;/h1&gt;&lt;p&gt;==========&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.pcak.cn/zb_users/upload/2019/03/20190319173454155298809416976.jpg&quot; alt=&quot;vue实例的生命周期&quot; title=&quot;在这里输入图片标题&quot;&gt;&lt;/p&gt;
&lt;h1 id=&quot;h1-u5176u4ED6&quot;&gt;&lt;a name=&quot;其他&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;其他&lt;/h1&gt;&lt;ul&gt;
&lt;li&gt;可通过关键字scoped定义样式的局部作用域&lt;/li&gt;&lt;/ul&gt;
&lt;h1 id=&quot;h1-u7EC4u4EF6u4F20u503C&quot;&gt;&lt;a name=&quot;组件传值&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;组件传值&lt;/h1&gt;&lt;p&gt;===========&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.pcak.cn/zb_users/upload/2019/03/20190319184657155299241748679.jpg&quot; alt=&quot;组件传值&quot;&gt;&lt;/p&gt;
</description><pubDate>Tue, 19 Mar 2019 17:28:27 +0800</pubDate></item><item><title>Navicat Premium 12.0 破解激活（Windows系统）</title><link>http://www.pcak.cn/?id=6</link><description>&lt;p&gt;准备材料&lt;/p&gt;&lt;p&gt;官网下载Navicat Premium或者Navicat for MySQL&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.navicat.com.cn/products&quot; target=&quot;_self&quot; style=&quot;white-space: normal;&quot;&gt;http://www.navicat.com.cn/products&lt;/a&gt;&lt;/p&gt;&lt;p&gt;下载注册机：Navicat_Keygen_Patch_v3.7_By_DFoX_URET.exe&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.lanzous.com/i1jw6oh&quot; target=&quot;_self&quot;&gt;https://www.lanzous.com/i1jw6oh&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;操作步骤：&lt;/p&gt;&lt;p&gt;算了，比较简单，看原文吧&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.jianshu.com/p/5f693b4c9468?mType=Group&quot; target=&quot;_self&quot;&gt;https://www.jianshu.com/p/5f693b4c9468?mType=Group&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;更新时间 2018-10-22 10:25:11&lt;/p&gt;&lt;p&gt;---------------------&amp;nbsp;&lt;/p&gt;&lt;p&gt;作者：CSDN丨你的笑忘书&amp;nbsp;&lt;/p&gt;&lt;p&gt;来源：CSDN&amp;nbsp;&lt;/p&gt;&lt;p&gt;原文：&lt;a href=&quot;https://blog.csdn.net/zhoukikoo/article/details/79864751&quot; target=&quot;_self&quot;&gt;https://blog.csdn.net/zhoukikoo/article/details/79864751&lt;/a&gt;&lt;/p&gt;&lt;p&gt;版权声明：本文为博主原创文章，转载请附上博文链接！&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 06 Dec 2018 15:59:58 +0800</pubDate></item><item><title>laravel切换语言为中文</title><link>http://www.pcak.cn/?id=4</link><description>&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;转载自：https://blog.csdn.net/chris_zqw/article/details/80254009&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;Laravel 5 语言包，包含 52 种语言, 基于&amp;nbsp;&lt;a href=&quot;https://github.com/caouecs/Laravel-lang&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word;&quot;&gt;caouecs/Laravel-lang&lt;/a&gt;.&lt;/p&gt;&lt;h1 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px 0px 0.3em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-bottom: 1px solid rgb(234, 236, 239); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E5%AE%89%E8%A3%85&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;安装&lt;/h1&gt;&lt;div class=&quot;highlight highlight-source-shell&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;composer&amp;nbsp;require&amp;nbsp;&amp;quot;overtrue/laravel-lang:~3.0&amp;quot;&lt;/pre&gt;&lt;/div&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#laraval-5&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;Laraval 5.*&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;完成上面的操作后，将项目文件&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;config/app.php&lt;/code&gt;&amp;nbsp;中的下一行&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;Illuminate\Translation\TranslationServiceProvider::class,&lt;/pre&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;替换为：&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;Overtrue\LaravelLang\TranslationServiceProvider::class,&lt;/pre&gt;&lt;/div&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#lumen&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;Lumen&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;bootstrap/app.php&lt;/code&gt;&amp;nbsp;中添加下面这行:&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;$app-&amp;gt;register(Overtrue\LaravelLang\TranslationServiceProvider::class);&lt;/pre&gt;&lt;/div&gt;&lt;h1 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px 0px 0.3em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-bottom: 1px solid rgb(234, 236, 239); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E9%85%8D%E7%BD%AE&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;配置&lt;/h1&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 1.25em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#laravel&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;Laravel&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;修改项目语言&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;config/app.php&lt;/code&gt;：&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;&amp;#39;locale&amp;#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;#39;zh-CN&amp;#39;,&lt;/pre&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 1.25em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#lumen-1&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;Lumen&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;.env&lt;/code&gt;&amp;nbsp;文件中修改语言：&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(36, 41, 46); background-color: rgb(246, 248, 250);&quot;&gt;APP_LOCALE=zh-CN&lt;/pre&gt;&lt;h1 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px 0px 0.3em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-bottom: 1px solid rgb(234, 236, 239); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E4%BD%BF%E7%94%A8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;使用&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;和正常使用一样，你如果需要额外添加语言项，请在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;resources/lang/zh-CN/&lt;/code&gt;&amp;nbsp;下建立你自己的文件即可，也可以建立同样的文件来替换掉默认的语言部分。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 1.25em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80%E9%A1%B9&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;添加自定义语言项&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;例如创建文件&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;resources/lang/zh-CN/demo.php&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;&amp;lt;?phpreturn&amp;nbsp;[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;#39;user_not_exists&amp;#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;#39;用户不存在&amp;#39;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;#39;email_has_registed&amp;#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;#39;邮箱&amp;nbsp;:email&amp;nbsp;已经注册过！&amp;#39;,];&lt;/pre&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;然后在任何地方：&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;echo&amp;nbsp;trans(&amp;#39;demo.user_not_exists&amp;#39;);&amp;nbsp;//&amp;nbsp;用户不存在echo&amp;nbsp;trans(&amp;#39;demo.email_has_registed&amp;#39;,&amp;nbsp;[&amp;#39;email&amp;#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;#39;anzhengchao@gmail.com&amp;#39;]);//&amp;nbsp;邮箱&amp;nbsp;anzhengchao@gmail.com&amp;nbsp;已经注册过！&lt;/pre&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 1.25em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E6%9B%BF%E6%8D%A2%E6%8E%89%E9%BB%98%E8%AE%A4%E7%9A%84%E8%AF%AD%E8%A8%80%E9%A1%B9&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;替换掉默认的语言项&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;我们假设想替换掉密码重围成功的提示文字为例，创建&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;resources/lang/zh-CN/passwords.php&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;highlight highlight-text-html-php&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;&amp;lt;?phpreturn&amp;nbsp;[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;#39;reset&amp;#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&amp;#39;您的密码已经重置成功了，你可以使用新的密码登录了!&amp;#39;,];&lt;/pre&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;只放置你需要替换的部分即可。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 16px; padding: 0px; font-size: 1.25em; color: rgb(36, 41, 46); line-height: 1.25; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; word-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/overtrue/laravel-lang/blob/master/README_CN.md#%E5%B0%86%E7%BF%BB%E8%AF%91%E6%96%87%E4%BB%B6%E6%8B%B7%E8%B4%9D%E5%88%B0%E4%BD%A0%E7%9A%84%E9%A1%B9%E7%9B%AE-resourceslang-%E7%9B%AE%E5%BD%95%E4%B8%8B&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 0px -20px; padding: 0px 4px 0px 0px; color: rgb(3, 102, 214); text-decoration-line: none; word-wrap: break-word; float: left; line-height: 1;&quot;&gt;&lt;/a&gt;将翻译文件拷贝到你的项目&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0.2em 0.4em; border-radius: 4px; word-wrap: break-word; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; background-color: rgba(27, 31, 35, 0.05);&quot;&gt;resources/lang/&lt;/code&gt;&amp;nbsp;目录下:&lt;/h3&gt;&lt;div class=&quot;highlight highlight-source-shell&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;$&amp;nbsp;php&amp;nbsp;artisan&amp;nbsp;lang:publish&amp;nbsp;[LOCALES]&amp;nbsp;{--force}&lt;/pre&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(36, 41, 46); line-height: 26px; overflow-x: auto; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;examples:&lt;/p&gt;&lt;div class=&quot;highlight highlight-source-shell&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; word-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 16px 8px; position: relative; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250);&quot;&gt;$&amp;nbsp;php&amp;nbsp;artisan&amp;nbsp;lang:publish&amp;nbsp;zh-CN,zh-HK,th&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 03 Dec 2018 17:39:56 +0800</pubDate></item></channel></rss><!--23.31 ms , 6 query , 2003kb memory , 0 error-->