search
HomeWeb Front-endLayui TutorialHow to refresh the current tab in layui

How to refresh the current tab in layui

Nov 24, 2020 am 09:14 AM
layuitab

Layui method of refreshing the current tab: You can use the reload method to refresh, such as [location.reload();]; the reload method is used to refresh the current document. The function of this method is similar to that of a browser. The function of the refresh page button.

How to refresh the current tab in layui
The operating environment of this tutorial: Windows 10 system, layui version 2.5.6. This method is suitable for all brands of computers.

Layui method of refreshing the current tab:

(Learning video sharing: javascript video tutorial)

Method:

location.reload();

Description:

reload() method is used to refresh the current document. reload()The method is similar to the refresh page button on your browser.

If you set the parameter of this method to true, it will bypass the cache and re-download the document from the server regardless of the last modification date of the document. This method has the exact same effect as if the user holds down the Shift key while clicking the browser's refresh button.

Example:

table.reload('testReload', {//testReload是组件名称,表格名
        page: {//page参数是指重新刷新后从第几页开始
          curr: 1 //重新从第 1 页开始
        }
        ,where: {//where是指你要往后台发的参数的键值对,可以不加key{}
          key: {
            id: demoReload.val()
          }
        }
      }, 'data');//data是默认值

Related recommendations:layui

The above is the detailed content of How to refresh the current tab in layui. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor