.load() and relative paths

前端 未结 2 1121
予麋鹿
予麋鹿 2020-12-10 15:49

.load() is giving me trouble. I\'m working on a section loader project and I just can\'t seem to fetch the file that I need.

What I am trying t

相关标签:
2条回答
  • 2020-12-10 16:32

    Your AJAX URLs should be relative to the page you're on, so you want "Pages1.html". What you have in the test case (..Pages1.html) will never work, as that's not a valid reference. (Did you mean to do ../Pages1.html?)

    0 讨论(0)
  • 2020-12-10 16:42

    ./Pages1.html should work. Tested all accounts for them in the address bar.

    0 讨论(0)
提交回复
热议问题