<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                最近在做機房登陸功能的時候,對于外觀模式的理解更加透徹了,下面和大家分享我的理解: 先來一張關于UI、Facade、BLL中對應的類的建立圖: ![](https://box.kancloud.cn/2016-04-07_570608899e469.jpg) 上圖中明顯可以看出UI中創建了一個登陸(FrmLogin)界面,在外觀層中創建了對應的登陸外觀(LoginFacade)類,因為登陸涉及兩個表的邏輯判斷,所以BLL層創建了用戶信息(UserBLL)和用戶工作記錄(WorkLogBLL)類。 此時外觀就將B層的兩個類封裝成了一個類中的兩個方法,對于UI來說就看不出B層中那么復雜的邏輯判斷,顯得那么的清楚和簡單;這就好比UI中登陸這個帥氣小伙子,和B層中的美女們相親,如果自己直接去接觸有時候就顯得那么的雜亂和尷尬,但是此時出現了外觀這個媒人,關于B層中的一些美女的基本信息,登陸這個帥氣小伙直接和媒人接觸了解就可以了,這樣使得媒人再給UI中其它帥氣小伙介紹對象的時候直接用B層中那些美女的信息就可以了,從而使得戀愛成功幾率更高,代碼服用更高。 敬請期待我在機房重構中揭取的其它桂冠。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看