jQuery:使用jQuery添加PHP [重复]

This question already has answers here:
                </div>
            </div>
                    <div class="grid--cell mb0 mt4">
                        <a href="/questions/13840429/what-is-the-difference-between-client-side-and-server-side-programming" dir="ltr">What is the difference between client-side and server-side programming?</a>
                            <span class="question-originals-answer-count">
                                (4 answers)
                            </span>
                    </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2019-06-02 10:07:11Z" class="relativetime">11 months ago</span>.</div>
        </div>
    </aside>

I have simple jQuery code where Im trying to like in PHP echo in jQuery to my website. But when I do it like this:

$( ".doc-list" ).html( "include 'documents.php';" );

My code echo it on site like:

include 'documents.php';

So my problem is when I make code like upwards jQuery echo it like plain text not like PHP and I need to include to my index.php documents.php when AJAX is done.

</div>

To load data from server use .load():

$( ".doc-list" ).load( "documents.php" );

Also, learn about client side and server side differences. Javascript (client-side) does not know anything about php code or any other code on your server side. Helpful question is here.