小编Fat*_*ari的帖子

ansible lineinfile正则表达式多行

我正在尝试使用Ansible编辑apache.conf.这是我的conf的一部分:

# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
        Options FollowSymLinks …
Run Code Online (Sandbox Code Playgroud)

regex apache ansible

7
推荐指数
2
解决办法
1万
查看次数

Jquery 在 Div 内添加按钮

我有这样的代码块:

<div class="services">
    <div class="grid grid-pad">

        <?php
        query_posts(array('post_type' => 'services', 'posts_per_page' => -1));

        while (have_posts()) : the_post();
            ?> 

            <div class="col-1-3 tri-clear">
                <div class="single-service">
                    <i class="fa <?php echo types_render_field("icon", array("output" => "raw")); ?> service-icon"></i>
                    <?php the_title('<h3 class="service-title">', '</h3>'); ?>
                    <?php the_content('<p>', '</p>'); ?>
                </div>
            </div>

        <?php endwhile; ?> 

        <!-- how to add button here? -->

    </div> 
</div>
Run Code Online (Sandbox Code Playgroud)

我想<button>Contact Us</button>在那里添加(我标记的地方)。由于某种原因,我无法编辑源代码,但我可以添加自定义 javascript(使用 jQuery)来添加按钮。如何实现?

感谢您的意见。

php jquery

3
推荐指数
1
解决办法
8691
查看次数

标签 统计

ansible ×1

apache ×1

jquery ×1

php ×1

regex ×1