<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>JavaScript 高级 on 杨刚的个人网站</title>
    <link>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/</link>
    <description>Recent content in JavaScript 高级 on 杨刚的个人网站</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <copyright>Copyright © 2018-2025 GradyYoung. All rights reserved.</copyright>
    <lastBuildDate>Sun, 27 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>1、异常处理</title>
      <link>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/1ec11caf/</link>
      <pubDate>Sun, 27 Apr 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/1ec11caf/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;try-catch-finally 
    &lt;div id=&#34;try-catch-finally&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#try-catch-finally&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;try&lt;/strong&gt; 语句允许我们定义在执行时进行错误测试的代码块。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>2、strict</title>
      <link>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/0ed486a3/</link>
      <pubDate>Fri, 25 Apr 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/0ed486a3/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;use strict 
    &lt;div id=&#34;use-strict&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#use-strict&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;&amp;quot;use strict&amp;quot;&lt;/code&gt;指令在 JavaScript 1.8.5 (ECMAScript5) 中新增。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>3、Promise</title>
      <link>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/7232e444/</link>
      <pubDate>Fri, 25 Apr 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/7232e444/</guid>
      <description>&lt;p&gt;Promise 是一个 ECMAScript 6 提供的类，目的是更加优雅地书写复杂的异步任务。&lt;/p&gt;
&lt;p&gt;由于 Promise 是 ES6 新增加的，所以一些旧的浏览器并不支持，苹果的 Safari 10 和 Windows 的 Edge 14 版本以上浏览器才开始支持 ES6 特性。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>4、对象和类</title>
      <link>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/6adc7d32/</link>
      <pubDate>Sun, 27 Apr 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/bafd68f1/81ac3c6b/0d08345a/47e69f85/6adc7d32/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;函数构造对象 
    &lt;div id=&#34;函数构造对象&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%87%bd%e6%95%b0%e6%9e%84%e9%80%a0%e5%af%b9%e8%b1%a1&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;使用函数构造对象通常是通过构造函数的方式。构造函数是一种特殊的函数，用于创建具有特定属性和方法的对象。&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
