The requirejs page is executed only once?

$("-sharpprint-esheet").click(function(){
    require(["jsname"], function(){
        ******
    })
})
If the

page is not refreshed, the click operation of print-esheet can only execute the code in require once, and the code in require cannot be executed on the second click. How to deal with this situation?

Mar.31,2021

should be cached by require, and repeated loading of the same module will be ignored.

you can judge the number of calls, execute it as a callback function for the first time, and then directly execute the specified function

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb82c2-48495.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb82c2-48495.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?