[exception] laypage is not a valid module appears when using layui's paging

When using the paging function of the layui official website as an example, I found that there is no label. Check the console and find that there is an error message: laypage is not a valid module

After looking up information on the Internet, I found a solution, which is to load jquery.js after layui.js is loaded

<script src="/layui/layui.js"></script>
<script src="/layui/lay/modules/jquery.js"></script>

Problem solved, if other modules also have this problem, you can also try this

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325746803&siteId=291194637