# 设计模式

- [简单工厂模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/jian-dan-gong-chang-mo-shi.md)
- [抽象工厂模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/chou-xiang-gong-chang-mo-shi.md)
- [单例模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/dan-li-mo-shi.md)
- [装饰器模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/zhuang-shi-qi-mo-shi.md)
- [适配器模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/kuo-pei-qi-mo-shi.md)
- [代理模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/dai-li-mo-shi.md)
- [观察者模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/guan-cha-zhe-mo-shi-1.md)
- [发布-订阅模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/guan-cha-zhe-mo-shi.md)
- [观察者模式与发布-订阅模式的区别是什么？](https://mm.ricky.moe/other/she-ji-mo-shi-1/guan-cha-zhe-mo-shi-yu-fa-bu-ding-yue-mo-shi-de-qu-bie-shi-shen-me.md)
- [单例模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/chuang-jian-xing-mo-shi.md)
- [工厂模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/gong-chang-mo-shi.md)
- [享元模式](https://mm.ricky.moe/other/she-ji-mo-shi-1/xiang-yuan-mo-shi.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mm.ricky.moe/other/she-ji-mo-shi-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
