我正在学习“ Avgrund Modal 插件”,我想知道如何将 HTML/PHP 文件的内容包含在 javascript 中。
当我创建模态窗口时,我使用以下代码:
<script>
$(function() {
    $('#show').avgrund({
        height: 200,
        holderClass: 'custom',
        showClose: true,
        showCloseText: 'Stäng',
        onBlurContainer: '.container',
        template: "Helloooo"
    });
});
</script>
模板中的值是模态窗口的内容。这是文档中的描述
template: 'String content..' // or function (elem) { }, or $('.content')
当我打开窗口时,如何包含一个完整的 php/html 文件来运行?
提前致谢。