Problem with page loading content, inside content

前端 未结 3 1625
灰色年华
灰色年华 2021-01-26 17:24

if you visit here: Example You will see my problem.

The page loads, then loads all the same content within a div id=content

Have a look at the sourc

3条回答
  •  生来不讨喜
    2021-01-26 17:57

    This line of code:

    $('.content').load('http://laynestaley.co.uk/test/'+fragment+'?ajax=1');
    

    Is actually loading the entire page into

    . Your server-side code must not be executing the way you expect it to with that AJAX call (It's just loading the index page of /test/ again).

提交回复
热议问题