Create modern website that loads content without refresh

后端 未结 4 1948
北荒
北荒 2021-02-10 04:15

I\'m trying to find useful tutorials about how to create modern websites that loads content without refreshing the page.

I have tried all kinds of words in Google, but I

4条回答
  •  春和景丽
    2021-02-10 04:53

    You'll want use ajax. There are also ways to poll the server for updates as well. You can use a setInterval call to periodically retrieve a URL; but this is only required if you're polling. If you're doing this action based on a user event, you can just use that to trigger the retrieval/update. I'd suggest looking at jQuery, it'll make this kind stuff much easier.

提交回复
热议问题