<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ES6 on HiMySQL - leopku 润物细无声</title>
    <link>https://himysql.now.sh/tags/es6/</link>
    <description>Recent content in ES6 on HiMySQL - leopku 润物细无声</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Mon, 03 Apr 2017 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://himysql.now.sh/tags/es6/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>深入 ES6 面向对象</title>
      <link>https://himysql.now.sh/post/object-oriented-javascript-deep-dive-es6-classes/</link>
      <pubDate>Mon, 03 Apr 2017 00:00:00 +0000</pubDate>
      
      <guid>https://himysql.now.sh/post/object-oriented-javascript-deep-dive-es6-classes/</guid>
      <description>&lt;p&gt;通常我们需要在代码中表述一个想法或概念——一部汽车引擎、一个电脑文件、一个路由器甚至一个温度计的度数。使用代码直接描述这些概念通常分为两部分：「表示状态的数据」与「表示行为的函数」。「类」给我们一个捷径来表述我们想表示的对象的状态和行为。同时，还通过初始化函数确定执行、更方便的定义约定的操作数据与维护状态的函数等机制，使得我们的代码更可控。如果你觉得某些「事物」是一个独立的实体，那么是时候单独为这个「事物」定义一个「类」了&lt;/p&gt;

&lt;p&gt;看一段没有类的代码，有多少错误能肉眼判断出来？又如何修复这些错误？&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>