<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title> 文章订阅 | CH前端社区</title>
    <description>中国最大的前端技术社区</description>
    <pubDate>Tue, 07 Apr 2026 08:51:51 +0000</pubDate>
    <lastBuildDate>Tue, 07 Apr 2026 08:51:51 +0000</lastBuildDate>
    <generator>CH前端社区</generator>
    <link>https://www.chinahtml.com/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://www.chinahtml.com/articles/-/index.rss"/>
    <item>
      <title>2018 年最具就业前景的编程语言，Java、Python、JavaScript 排前三</title>
      <pubDate>Wed, 03 Jan 2018 13:01:45 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/48/</link>
      <guid>https://www.chinahtml.com/articles/48/</guid>
      <author>CH首席编辑</author>
      <dc:creator>CH首席编辑</dc:creator>
      <content:encoded><![CDATA[2018 年来了，Coding Dojo（编码道场）近期发布了 2018 最具就业前景的 7 大编程语言。该公司分析了来自 Indeed 的 25 门编程语言、栈和框架的数据，以找出雇主最需求的七个数据。数据基于每种语言的工作发布数量。<br />
<br />
需先说明的是，国内和国外的情况有所差异，以下数据和分析仅供参考。<br />
<br />


	<a href="https://down1.chinahtml.com/attachments/10464/" target="_blank">浏览附件10464</a>
	
<br />
<br />
结果发现，位居前三名的分别为 Java、Python 和 JavaScript ，但相比去年的数据，只有 Python 是岗位有所增长的。而且 Coding Dojo 认为，随着对机器学习开发人员需求的增长，未来对 Python 的需求还将继续增长。<br />
<br />
像 Swift 、R 和 Ruby 这样的有很多开发者喜欢的语言并没有进入前七，因为它们的求职需求相对较低。<br />
<br />


	<a href="https://down1.chinahtml.com/attachments/10465/" target="_blank">浏览附件10465</a>
	
<br />
<br />
<b>1、Java</b><br />
<br />
与 2017 年相比，Java 在 2018 年的受欢迎程度会有所下降，职位减少了约 6000，但依然受欢迎。 Java 已经有 20...<br />
<br />
<a href="https://www.chinahtml.com/articles/48/" target="_blank" class="externalLink" rel="nofollow">2018 年最具就业前景的编程语言，Java、Python、JavaScript 排前三</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>JavaScript 开发人员需要知道的简写技巧</title>
      <pubDate>Wed, 25 Oct 2017 01:06:51 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/47/</link>
      <guid>https://www.chinahtml.com/articles/47/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[本文来源于多年的 JavaScript 编码技术经验，适合所有正在使用 JavaScript 编程的开发人员阅读。<br />
<br />
本文的目的在于帮助大家更加熟练的运用 JavaScript 语言来进行开发工作。<br />
<br />
文章将分成初级篇和高级篇两部分，分别进行介绍。<br />
<br />
<h3>初级篇</h3><br />
1、三目运算符<br />
<br />
下面是一个很好的例子，将一个完整的 if 语句，简写为一行代码。<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
const x = 20;
let answer;
if (x &gt; 10) {
   answer = 'greater than 10';
} else {
   answer = 'less than 10';
}
</pre>
</div>简写为：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
const answer = x &gt; 10 ? 'greater than 10' : 'less than 10';
</pre>
</div>2、循环语句<br />
<br />
当使用纯 JavaScript（不依赖外部库，如 jQuery 或 lodash）时，下面的简写会非常有用。<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
for (let i = 0; i &lt; allImgs.length; i++)...</pre>
</div><a href="https://www.chinahtml.com/articles/47/" target="_blank" class="externalLink" rel="nofollow">JavaScript 开发人员需要知道的简写技巧</a>]]></content:encoded>
    </item>
    <item>
      <title>最流行前端 UI 框架 Bootstrap v4.0.0-beta.2 发布</title>
      <pubDate>Fri, 20 Oct 2017 01:41:17 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/46/</link>
      <guid>https://www.chinahtml.com/articles/46/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[Bootstrap v4.0.0-beta.2 发布了，Bootstrap是快速开发Web应用程序的前端工具包。它是一个CSS和HTML的集合，它使用了最新的浏览器技术，给你的Web开发提供了时尚的版式，表单，buttons，表格，网格系统等等。<br />
<br />
此次更新的亮点有：<br />
<br />
<ul>
<li>Improved Sass map customization with <a href="https://github.com/twbs/bootstrap/pull/23260" target="_blank" class="externalLink" rel="nofollow">#23260</a>. With this change, it&#039;s now possible to override specific key value pairs instead of resetting the entire map, ideal for color scheme customization.<br />
<br />
</li>
<li>Restored grid .offset- modifiers in...</li>
</ul><br />
<a href="https://www.chinahtml.com/articles/46/" target="_blank" class="externalLink" rel="nofollow">最流行前端 UI 框架 Bootstrap v4.0.0-beta.2 发布</a>]]></content:encoded>
    </item>
    <item>
      <title>Web 设计中如何更好地运用动画？</title>
      <pubDate>Tue, 10 Oct 2017 01:15:23 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/45/</link>
      <guid>https://www.chinahtml.com/articles/45/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[随着软硬件技术的发展，界面动画在我们的日常生活中随处可见。桌面软件、移动应用、云服务此刻回顾四周我相信你一定能发现他们。<br />
<br />
<div style="text-align: center">

	<a href="https://down1.chinahtml.com/attachments/10159/" target="_blank">浏览附件10159</a>
	
&#8203;</div><br />
在产品中动画未必越多越好，也未必越炫越好。不同的产品类型对动画的要求也不同。常见的动画主要承担向用户解释界面与界面之间的关系，元素与元素间的关系以及特定元素的强化。<br />
<br />
如果你关注过界面动画，你可能见过以下这些动画曲线。摘自 <a href="http://easings.net/" target="_blank" class="externalLink" rel="nofollow">http://easings.net/</a><br />
<br />
<div style="text-align: center">

	<a href="https://down1.chinahtml.com/attachments/10160/" target="_blank">浏览附件10160</a>
	
&#8203;</div><br />
他们表述了动画变化的程度与时间的关系。通过合理利用这些动画曲线背后的原理，可以让动画看起来更加真实。<br />
<br />
这里说到我们要让界面动画更自然。如何做到自然？只要遵循客观物理规律以及人得视觉经验，动画就会看上去真实自然。<br />
<br />
为什么要讲动画函数？相信很多设计师看到下面的文章会的觉得太枯燥。<br />
<br />
那我们回到产品研发过程，在产品里，常见的动画实现有这么几种：<br />
<ol>
<li>...</li>
</ol><br />
<a href="https://www.chinahtml.com/articles/45/" target="_blank" class="externalLink" rel="nofollow">Web 设计中如何更好地运用动画？</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>vue.js 与其他前端框架详细对比</title>
      <pubDate>Sat, 30 Sep 2017 01:26:39 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/44/</link>
      <guid>https://www.chinahtml.com/articles/44/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[<h1>React</h1><br />
React 和 Vue 有许多相似之处，它们都有：<br />
<br />
<ul>
<li>使用 Virtual DOM</li>
<li>提供了响应式 (Reactive) 和组件化 (Composable) 的视图组件。</li>
<li>将注意力集中保持在核心库，而将其他功能如路由和全局状态管理交给相关的库。</li>
</ul>由于有着众多的相似处，我们会用更多的时间在这一块进行比较。这里我们不只保证技术内容的准确性，同时也兼顾了平衡的考量。我们需要承认 React 比 Vue 更好的地方，比如更丰富的生态系统。<br />
<br />
<h2>相似之处</h2><br />
React与Vue存在很多相似之处，例如他们都是JavaScript的UI框架，专注于创造前端的富应用。不同于早期的JavaScript框架“功能齐全”，Reat与Vue只有框架的骨架，其他的功能如路由、状态管理等是框架分离的组件。<br />
<br />
<h3>Virtual DOM</h3><br />
Vue.js(2.0版本)与React的其中最大一个相似之处，就是他们都使用了一种叫&#039;Virtual DOM&#039;的东西。所谓的Virtual...<br />
<br />
<a href="https://www.chinahtml.com/articles/44/" target="_blank" class="externalLink" rel="nofollow">vue.js 与其他前端框架详细对比</a>]]></content:encoded>
    </item>
    <item>
      <title>Mozilla Firefox 57更名为Firefox Quantum</title>
      <pubDate>Wed, 27 Sep 2017 00:55:32 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/43/</link>
      <guid>https://www.chinahtml.com/articles/43/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[今天，Mozilla将Firefox 57浏览器作为Beta版发布，并正式将其命名为Firefox Quantum。该品牌还包括一个新的标志。Mozilla表示，引擎在浏览器中很重要。这就是为什么Mozilla正在发布一个全新的Firefox Beta版，一个完全重新发明的现代化引擎。由于Firefox 57这个名称不能真正传达我们所做出的更改，而且这款新Firefox浏览器速度要快得多，所以称之为Firefox Quantum。<br />
<br />
Mozilla表示，Firefox Quantum浏览器速度是Firefox 52的两倍。它能够通过使用Rust语言来重建组件提高浏览器的速度，这些组件现在更有效率。 Firefox历史版本仅在一个CPU核心上运行任务，但在Quantum及更高版本中，它将利用多个CPU核心，从而使浏览器速度更快。<br />
<br />
通过使用Rust编写的新CSS引擎，Firefox可以并行使用多个CPU来缩短加载时间，Mozilla声称没有其他浏览器可以执行此操作。为了进一步提高速度，Mozilla将用户打开的选项卡放在首位，并且采用多进程架构。 Firefox...<br />
<br />
<a href="https://www.chinahtml.com/articles/43/" target="_blank" class="externalLink" rel="nofollow">Mozilla Firefox 57更名为Firefox Quantum</a>]]></content:encoded>
    </item>
    <item>
      <title>React 16.0.0 正式发布，改用 MIT 许可证</title>
      <pubDate>Wed, 27 Sep 2017 00:45:37 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/42/</link>
      <guid>https://www.chinahtml.com/articles/42/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[我们很高兴地宣布React 16.0.0 发布了，该版本最值得关注的是项目许可证去除了专利部分，改为 MIT 许可证。<br />
<br />
此外该版本带来了一些用户长期请求的新特性，主要内容包括：<br />
<br />
<ul>
<li>全新的渲染返回类型：fragments 和 strings<br />
</li>
<li>更好的错误处理<br />
</li>
<li>Portals 提供一流的方法将子节点渲染到一个存在于 DOM 层级之外的 DOM 节点<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
render() {
  // React does *not* create a new div. It renders the children into `domNode`.
  // `domNode` is any valid DOM node, regardless of its location in the DOM.
  return ReactDOM.createPortal(
    this.props.children,
    domNode,
  );
}</pre>
</div>...</li>
</ul><br />
<a href="https://www.chinahtml.com/articles/42/" target="_blank" class="externalLink" rel="nofollow">React 16.0.0 正式发布，改用 MIT 许可证</a>]]></content:encoded>
    </item>
    <item>
      <title>人人都能用的10个网站易用性技巧</title>
      <pubDate>Tue, 26 Sep 2017 01:30:46 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/41/</link>
      <guid>https://www.chinahtml.com/articles/41/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[WebAIM团队博客的一篇关于网站易用性的文章，比较基础，这些技巧可以马上实施到你的网站上。<br />
<br />
<h3>1. 给你的logo添加替代文本</h3><br />
这样有两个好处：屏幕阅读器能识别logo图片代表的含义，图片未加载到时，也能告诉非视障用户那里是你的logo。<br />
<br />
几种方法：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
 &lt;img src=&quot;logo.png&quot; alt=&quot;前端界&quot;&gt;
</pre>
</div>或者，你用背景图来实现logo的话，也可以添加title属性来实现：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
 &lt;span title=&quot;CH前端社区&quot;&gt;&lt;/span&gt;
</pre>
</div>当然，链接+背景图的方式是最好的，但最好也加上title属性：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>
 &lt;a title=&quot;CH前端社区&quot;&gt;CH前端社区&lt;/a&gt;
</pre>
</div><h3>2.添加基本的Landmarks</h3><br />
<a href="http://www.w3.org/TR/wai-aria/roles" target="_blank" class="externalLink" rel="nofollow">ARIA...</a><br />
<br />
<a href="https://www.chinahtml.com/articles/41/" target="_blank" class="externalLink" rel="nofollow">人人都能用的10个网站易用性技巧</a>]]></content:encoded>
    </item>
    <item>
      <title>Facebook：从React 16起拥抱流行的MIT许可证</title>
      <pubDate>Mon, 25 Sep 2017 15:14:01 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/40/</link>
      <guid>https://www.chinahtml.com/articles/40/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[<a href="https://down1.chinahtml.com/attachments/10133/" target="_blank">浏览附件10133</a>
	
<br />
前几日，WordPress创始人Matt在其博客上发文，称决定停止使用React，原因则是专利问题。之前WordPress几乎所有项目都基于React开发，比如，最近几年使用React重构了WordPress.com ，也就是所谓的Calypso项目，还有WordPress 4.8版本之后开始的Gutenberg (古腾堡) 项目，也是基于React开发的。<br />
<br />
Facebook几周前发表了一篇关于React使用许可协议的官方声明。声明中称，任何人不能将React用于与Facebook及其合作公司有直接或间接竞争关系的项目中，否则Facebook公司自动取消其使用许可。<br />
<br />
该声明在科技圈引起轩然大波，毕竟React的应用范围十分广泛，包括BAT在内的许多大公司很多项目都是基于其开发的。<br />
<br />
不过在业界的集体批评下，Facebook 已经对旗下多个开源项目的许可方式进行了变更 —— 包括 Jest、Flow、Immutable.js 在内的项目，都将拥抱流行的 MIT 许可。<br />
<br />
Facebook 工程总监 Adam Wolff...<br />
<br />
<a href="https://www.chinahtml.com/articles/40/" target="_blank" class="externalLink" rel="nofollow">Facebook：从React 16起拥抱流行的MIT许可证</a>]]></content:encoded>
    </item>
    <item>
      <title>设计表单的正确姿势</title>
      <pubDate>Mon, 25 Sep 2017 05:16:52 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/39/</link>
      <guid>https://www.chinahtml.com/articles/39/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[简评：表单是产品设计中最重要的组件之一。本文重点介绍了表单设计的一般规则。请记住，这些都是一般准则，每个规则都有例外。<br />
<h2>表单应该放到一列中</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10117/" target="_blank">浏览附件10117</a>
	
<br />
<br />
多列破坏了用户的垂直阅读习惯。<br />
<br />
<h2>标签顶部对齐</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10118/" target="_blank">浏览附件10118</a>
	
<br />
用户更能够接收顶对齐的提示标签。并且标签顶对齐在手机上也能很好的显示。<br />
<br />
<h2>标签和输入框分视觉上进行绑定</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10119/" target="_blank">浏览附件10119</a>
	
<br />
将标签和输入贴在一起，确保字段之间有足够的高度，以免用户感到困惑。<br />
<br />
<h2>不要所有的字符都用大写字母</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10120/" target="_blank">浏览附件10120</a>
	
<br />
全大写的单词影响可读性。<br />
<br />
<h2>如果少于 6 个选项，应该全部显示出来</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10121/" target="_blank">浏览附件10121</a>
	
<br />
下拉列表选项需要两次点击操作，并且需要隐藏下拉列表操作操作比较复杂。如果选项多余 5 个建议使用下拉列表，如果选项多余 25 个建议在下拉列表中加入搜索功能。...<br />
<br />
<a href="https://www.chinahtml.com/articles/39/" target="_blank" class="externalLink" rel="nofollow">设计表单的正确姿势</a>]]></content:encoded>
    </item>
    <item>
      <title>深度解读CSS工程化实践成果</title>
      <pubDate>Mon, 25 Sep 2017 01:48:41 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/38/</link>
      <guid>https://www.chinahtml.com/articles/38/</guid>
      <author>小栗儿</author>
      <dc:creator>小栗儿</dc:creator>
      <content:encoded><![CDATA[作为Web开发的重要组成部分，CSS技术演进也在推动着前端工程化不断进步。本文将从CSS模块化、namespace约束、CSS in JS方案三个方面逐步深入解读CSS在工程化领域取得的成果。<br />
<br />
<h2>CSS技术的演进</h2><br />
CSS是Web开发中不可或缺的一部分，在前端工程化不断进步的今天，一方面CSS特性随着规范的升级越来越丰富，另一方面，前端业务复杂性的增加带来的工程愈加庞大， 驱使着开发者不断寻找CSS工程化的最佳实践。<br />
<br />
<h3>Web开发模块化趋势</h3><br />
不可否认， 无论从现代前端框架（React、 Vue、Angular、 Polymer等）， 还是从W3C的Web Components草案来看，组件化已经是前端开发的主流之选和未来的发展方向，正如在Reddit上有网友说道“Facebook.com’s codebase includes over 20,000 components”。 广义上看，所有页面上都可以被划分成一个个组件，相对于过去以网页作为开发单位，以组件为单位开发有着可复用、可扩展等一系列有利于项目工程化的优点。...<br />
<br />
<a href="https://www.chinahtml.com/articles/38/" target="_blank" class="externalLink" rel="nofollow">深度解读CSS工程化实践成果</a>]]></content:encoded>
    </item>
    <item>
      <title>给 Web 开发人员推荐的文档生成工具</title>
      <pubDate>Sun, 24 Sep 2017 13:49:49 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/37/</link>
      <guid>https://www.chinahtml.com/articles/37/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[工欲善其事必先利其器，在此给 Web 开发人员推荐几款优秀的开源文档生成工具，希望能对大家有所帮助。<br />
<br />
<h4><b>1、JavaScript</b></h4><br />
<h3>JSDoc 3</h3><br />
这是一款根据 Javascript 文件中注释信息，生成 JavaScript 应用、库、模块的 API 文档的工具。你可以使用它记录如：命名空间、类、方法、方法参数等。该项目还衍生出了许多模板和其他工具来帮助生成和自定义文档，比如：<br />
<br />
模板<br />
<br />
<ul>
<li><a href="https://github.com/davidshimjs/jaguarjs-jsdoc" target="_blank" class="externalLink" rel="nofollow">jaguarjs-jsdoc</a><br />
<br />
</li>
<li><a href="https://github.com/docstrap/docstrap" target="_blank" class="externalLink" rel="nofollow">DocStrap</a> (<a href="https://docstrap.github.io/docstrap" target="_blank" class="externalLink" rel="nofollow">example</a>)...</li>
</ul><br />
<a href="https://www.chinahtml.com/articles/37/" target="_blank" class="externalLink" rel="nofollow">给 Web 开发人员推荐的文档生成工具</a>]]></content:encoded>
    </item>
    <item>
      <title>用 GitHub 能做 12 个很酷的操作</title>
      <pubDate>Wed, 13 Sep 2017 01:23:37 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/36/</link>
      <guid>https://www.chinahtml.com/articles/36/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[<h2>#1 在 Github 上编辑代码</h2><br />
我要先说一个很多人都知道的事儿。<br />
<br />
当你使用 GitHub，看一些文件（任何的文本文件或者仓库），能看到一个顶部右侧有一个小铅笔图标。点击即可编辑文档。完成后，按照提示点击「 <b>Propose file change</b> 」，GitHub 会为你 fork 这个仓库并创建一个 pull request。<br />
<br />
很帅吧，GitHub 为你创建了一个分支。<br />
<br />
不需要 fork / pull / 改变 locally / push / 创建 PR，只需点击一下，就可以创建分支。<br />
<br />
<div style="text-align: center">

	<a href="https://down1.chinahtml.com/attachments/10008/" target="_blank">浏览附件10008</a>
	
&#8203;</div><br />
这对于改一些排版错误或者防恶意篡改是很有帮助的。<br />
<br />
<h2>＃2 粘贴图像</h2><br />
对于 issue 和 comment，你还可以直接粘贴图片，当你粘贴时图片会被上传至云端，然后以 MarkDown 格式显示。<br />
<br />
非常简洁。<br />
<br />
<h2>＃3 格式化代码</h2><br />
如果你想写一个 code block，你可以在开始处写三个反引号，然后 GitHub...<br />
<br />
<a href="https://www.chinahtml.com/articles/36/" target="_blank" class="externalLink" rel="nofollow">用 GitHub 能做 12 个很酷的操作</a>]]></content:encoded>
    </item>
    <item>
      <title>OAuth 2 还是 JWT？如何设计安全的 API？</title>
      <pubDate>Fri, 08 Sep 2017 09:00:58 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/35/</link>
      <guid>https://www.chinahtml.com/articles/35/</guid>
      <author>蔡老师</author>
      <dc:creator>蔡老师</dc:creator>
      <content:encoded><![CDATA[本文会详细描述两种通用的保证API安全性的方法：OAuth 2和JSON Web Token (JWT)<br />
<br />
假设：<br />
<ul>
<li>你已经或者正在实现API；</li>
<li>你正在考虑选择一个合适的方法保证API的安全性；</li>
</ul><br />
<h2>JWT和OAuth2比较？</h2><br />
要比较JWT和OAuth2？首先要明白一点就是，这两个根本没有可比性，是两个完全不同的东西。<br />
<br />
<ul>
<li><b>JWT是一种认证协议</b> <br />
JWT提供了一种用于发布接入令牌（Access Token）,并对发布的签名接入令牌进行验证的方法。 令牌（Token）本身包含了一系列声明，应用程序可以根据这些声明限制用户对资源的访问。</li>
<li><b>OAuth2是一种授权框架</b> <br />
另一方面，OAuth2是一种授权框架，提供了一套详细的授权机制（指导）。用户或应用可以通过公开的或私有的设置，授权第三方应用访问特定资源。</li>
</ul>...<br />
<br />
<a href="https://www.chinahtml.com/articles/35/" target="_blank" class="externalLink" rel="nofollow">OAuth 2 还是 JWT？如何设计安全的 API？</a>]]></content:encoded>
    </item>
    <item>
      <title>每个新手程序员都会犯的5个错误</title>
      <pubDate>Wed, 30 Aug 2017 00:00:00 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/34/</link>
      <guid>https://www.chinahtml.com/articles/34/</guid>
      <author>CH首席编辑</author>
      <dc:creator>CH首席编辑</dc:creator>
      <content:encoded><![CDATA[<i>在本文中，作者列举出了5个编程新手会犯的错误，同时给出有用的建议，以此帮助每个新手更好地开始自己的编程生涯。以下为译文：</i><br />
<br />
在开始学习编程的过程中，你可能会被每天遇到的问题所困扰，所以在这条路上你会感觉很迷茫。想要克服这些问题，那从一开始就避免一些错误是很重要的。<br />
<br />
这里有一些你可能觉得有用的建议，可以帮助你顺利地开始你的编程生涯。<br />
<br />
<h2>1.不使用版本控制系统</h2><br />
一旦你开始对代码有点熟悉的时候，学习如何使用VCS就应该成为你的首要任务。<br />
<br />
当你不知道如何正确地写代码的时候，你可能会感觉很疲惫。但当你能感到写代码变得很舒适的时候，你就会欣赏这种技能。<br />
<br />
这个系统有很多的高级功能，这对我们来说很重要。但一开始，我会专注于<i>setting up repository</i>以及<i>committing</i>，这有助于你跟踪开发的进度。然后，学习<i>fetching / pulling</i>和<i>pushing</i>的概念也是很重要的，这样你就可以拥有一个在线备份存储库。<br />
<br />
当你编程能力提高的时候，你就会发现你可以自主学习VCS和其他技术了！...<br />
<br />
<a href="https://www.chinahtml.com/articles/34/" target="_blank" class="externalLink" rel="nofollow">每个新手程序员都会犯的5个错误</a>]]></content:encoded>
    </item>
    <item>
      <title>15 个必备的 VSCode 插件</title>
      <pubDate>Sat, 12 Aug 2017 04:26:36 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/33/</link>
      <guid>https://www.chinahtml.com/articles/33/</guid>
      <author>郑舒林</author>
      <dc:creator>郑舒林</dc:creator>
      <content:encoded><![CDATA[Visual Studio Code 是由微软开发的一款免费、跨平台的文本编辑器。由于其卓越的性能和丰富的功能，它很快就受到了大家的喜爱。<br />


	<a href="https://down1.chinahtml.com/attachments/9969/" target="_blank">浏览附件9969</a>
	
<br />
就像大多数 IDE 一样，VSCode 也有一个扩展和主题市场，包含了数以千计质量不同的插件。为了帮助大家挑选出值得下载的插件，我们针对性的收集了一些实用、有趣的插件与大家分享。<br />
<br />
<h3>1. <a href="https://marketplace.visualstudio.com/items?itemName=coderfee.open-html-in-browser" target="_blank" class="externalLink" rel="nofollow">Open-In-Browser</a> </h3><br />


	<a href="https://down1.chinahtml.com/attachments/9976/" target="_blank">浏览附件9976</a>
	
<br />
<br />
由于 VSCode 没有提供直接在浏览器中打开文件的内置界面，所以此插件在快捷菜单中添加了在默认浏览器查看文件选项，以及在客户端（Firefox，Chrome，IE）中打开命令面板选项。...<br />
<br />
<a href="https://www.chinahtml.com/articles/33/" target="_blank" class="externalLink" rel="nofollow">15 个必备的 VSCode 插件</a>]]></content:encoded>
    </item>
    <item>
      <title>让你成为 Git 和 GitHub 高手的 20 个技巧</title>
      <pubDate>Mon, 24 Jul 2017 15:55:47 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/32/</link>
      <guid>https://www.chinahtml.com/articles/32/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[Git不仅是编程世界最流行的分布式版本控制系统，而且你还可以用它查找，分享以及优化你的代码。接下来就来看看怎样让Git和GitHub更好地为你服务吧。<br />
<br />
尽管现在网上有很多Git的初学者教程，而且<a href="https://guides.github.com/" target="_blank" class="externalLink" rel="nofollow">GitHub自己也提供相当一部分教程</a>，但是要找到有效提高开发者使用Git和GitHub使用效率的技巧还是不太容易的，所以我们就来教大家一些方法吧。<br />
<br />
对Git或者GitHub不熟悉的人来说，接下来的几段话会提供充分的背景知识使得您更好地理解使用技巧。在文章结尾我们会列出一些实用的资源。<br />
<br />
Git是一个分布式版本控制系统，它由<a href="http://www.infoworld.com/d/application-development/torvaldss-git-the-it-technology-software-version-control-167799" target="_blank" class="externalLink" rel="nofollow">Linus Torvalds</a>...<br />
<br />
<a href="https://www.chinahtml.com/articles/32/" target="_blank" class="externalLink" rel="nofollow">让你成为 Git 和 GitHub 高手的 20 个技巧</a>]]></content:encoded>
    </item>
    <item>
      <title>30 分钟完全学会 Flex 布局</title>
      <pubDate>Mon, 24 Jul 2017 15:01:26 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/31/</link>
      <guid>https://www.chinahtml.com/articles/31/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[<h2>为什么我要写这一篇关于 Flex 布局的教程？</h2><br />
因为它十分简单灵活，区区简单几行代码就可以实现各种页面的的布局，以前我在学习页面布局的时候我深受其 float、display、position 这些属性的困扰。然而学习 Flex 布局，你只要学习几个 CSS 属性，就可以写出简洁优雅复杂的页面布局。<br />
<br />
<h2>本教程适合人群：</h2><br />
<ol>
<li>前端小白，不太明白页面布局技巧，但想通过简单的学习学会如何进行页面布局</li>
<li>学过但是不太熟悉 Flex 布局，需要教程来巩固回顾 Flex 布局的知识点</li>
<li>项目不考虑兼容 IE 低版本浏览器，想简单优雅地写出漂亮的页面布局</li>
</ol>废话就不多说了，我将尽可能地用简洁明了的言语来描述 Flex 布局，看完你会收获的。<br />
<br />
<h2>Flex 基本概念：</h2><br />


	<a href="https://down1.chinahtml.com/attachments/10087/" target="_blank">浏览附件10087</a>
	
<br />
在 flex 容器中默认存在两条轴，水平主轴(main axis) 和垂直的交叉轴(cross...<br />
<br />
<a href="https://www.chinahtml.com/articles/31/" target="_blank" class="externalLink" rel="nofollow">30 分钟完全学会 Flex 布局</a>]]></content:encoded>
    </item>
    <item>
      <title>写好你的JavaScript</title>
      <pubDate>Mon, 24 Jul 2017 14:26:08 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/30/</link>
      <guid>https://www.chinahtml.com/articles/30/</guid>
      <author>laogui</author>
      <dc:creator>laogui</dc:creator>
      <content:encoded><![CDATA[<h2>前言</h2><br />
在实际工作中，我们应该经常会看到一些功能上没有问题，但编码风格和规范却十分糟糕的代码，这往往会让人不敢再往下阅读，甚至会影响阅读者一天的心情。这些代码不仅不易阅读，而且难以维护，它们一般会出自刚入门的编程新手，也会出自工作了好几年的老程序员手下。因此本文的目的在于帮助那些没有养成良好的编码风格，缺乏相应编码规范意识的JavaScript学习者们改善他们的编码形象。<br />
<br />
<h2>编码形象</h2><br />
以上我提出了编码形象的概念，我个人认为：<br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote">编码形象 = 编码风格 +　编码规范</div><div class="quoteExpand">点击展开...</div></blockquote>
	</aside>
</div>一个良好的编码形象就等于一个穿着得体的青年，对于程序员来说这是同行了解你优秀能力的最直接最简单的方式。<br />
<br />
我们来看一下一段糟糕的编码形象：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>//打个招呼
function func(){
    var age=18,sex='man';
    var greeting='hello';
    if(age&amp;lt;=18&amp;amp;&amp;amp;sex=='man'){
        console.log(greeting+'little...</pre>
</div><a href="https://www.chinahtml.com/articles/30/" target="_blank" class="externalLink" rel="nofollow">写好你的JavaScript</a>]]></content:encoded>
    </item>
    <item>
      <title>19+ 个 JavaScript 快速编程技巧</title>
      <pubDate>Sun, 16 Jul 2017 16:27:37 +0000</pubDate>
      <link>https://www.chinahtml.com/articles/29/</link>
      <guid>https://www.chinahtml.com/articles/29/</guid>
      <author>蔡老师</author>
      <dc:creator>蔡老师</dc:creator>
      <content:encoded><![CDATA[这确实是一篇针对于基于 JavaScript 语言编程的开发者必读的文章。在过去几年我学习 JavaScript 的时候，我写下了这篇文章，并将其作为 JavaScript 快速编程技巧的一个重要参考。为了有助于理解，针对常规写法我也给出了相关的编程观点。<br />
<h3>1. 三元操作符</h3><br />
如果你想只用一行代码写出一个 if..else 表达式，那么这是一个很好的节省代码的方式。<br />
常规写法：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>const x = 20;
let answer;
if (x &gt; 10) {
    answer = 'is greater';
} else {
    answer = 'is lesser';
}</pre>
</div>速记法：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>const answer = x &gt; 10 ? 'is greater' : 'is lesser';</pre>
</div>你也可以像这样嵌套 if 表达式：<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">代码:</div>
	<pre>const big = x &gt; 10 ? &quot; greater 10&quot; : x</pre>
</div><h3>2. 短路求值速记法</h3>...<br />
<br />
<a href="https://www.chinahtml.com/articles/29/" target="_blank" class="externalLink" rel="nofollow">19+ 个 JavaScript 快速编程技巧</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
  </channel>
</rss>
