markdown 将内容加载到Modal(JS)中

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 将内容加载到Modal(JS)中相关的知识,希望对你有一定的参考价值。

## Load Content into a Modal
* To reuse a modal (replacing the content inside):
  * On modal open, set a function that targets (for example, the body of the modal)
  * `$(.modal-body).load(link/path/where/to/get/content)`
  * The link path will return html for a particular resource
  * If the path is `/posts/15/`, it has the id, so the action will render a js file that has attributes
  specific to post with id = 15

以上是关于markdown 将内容加载到Modal(JS)中的主要内容,如果未能解决你的问题,请参考以下文章