ajax有效,但无效[关闭]

                <div class="grid--cell fl1 lh-lg">
                    <div class="grid--cell fl1 lh-lg">
                        This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,   or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making   this question more broadly applicable, <a href="/help/reopen-questions">visit the help center</a>.

                    </div>
                </div>
            </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2012-10-23 04:26:06Z" class="relativetime">7 years ago</span>.</div>
        </div>
    </aside>

Please help me, I am going crazy..

The following simple code is running perfectly at local machine but it won't run when I upload it to the server:

Here is my code:

</div>

looks like you're trying to do a cross domain request. you can't do that with regular jquery/javascript.

take a look at this post: jQuery AJAX cross domain

also, make sure you use js console when you get errors. It tells you there is a cross domain issue