Requirement: Realize linkage between pages and jump to the specified TAB bar. Solution: Step 1: Add the code as shown in the figure on the basis of the normal TAB. Lay -filter indicates the name of the parameter in the address bar. Lay -id is used as a unique matching index for external location switching.

Step 2: Initialize the Layui TAB

layui.use('element', function(){ var element = layui.element; Var layid = location.hash. Replace (/^#current=/, "); TabChange ('current', layid); tabChange('current', layid); // Assume the current address is: http://a.com#current=two, then the Tab will automatically switch to the asset Discovery Tab. On (' TAB (current)', function(){location.hash =' current='+ this.getattribute ('lay-id'); }); });