<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>结构式模式 on 杨刚的个人网站</title>
    <link>https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/</link>
    <description>Recent content in 结构式模式 on 杨刚的个人网站</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <copyright>Copyright © 2018-2025 GradyYoung. All rights reserved.</copyright>
    <lastBuildDate>Sat, 11 Nov 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>1、代理模式</title>
      <link>https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/cd17ae44/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/cd17ae44/</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%8e%9f%e7%90%86&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;使用一个代理将对象包装起来, 然后用该代理对象取代原始对象。任何对原始对象的调用都要通过代理。代理对象决定是否以及何时将方法调用转到原始对象上。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>2、装饰者模式</title>
      <link>https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/65cc0218/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/6e08a29a/5d67f48c/65cc0218/</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%8e%9f%e7%90%86&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;装饰者模式（DecoratorPattern）是指在不改变原对象的基础之上，将功能附加到对象上，提供了比继承更灵活性的替代方案（扩展原有对象的功能），装饰者模式属于结构型模式&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
