1. (function (){
    2. localStorage.clear();
    3. const tk = 'TOKEN_' + new Date().getTime();
    4. const a = ''.concat(Date.now(), '-').concat(
    5. (function t(e) {
    6. var n = Math.random()
    7. .toString(36)
    8. .substr(2);
    9. return n.length >= e ? n.substr(0, e) : (n += t(e - n.length));
    10. })(32),
    11. );
    12. localStorage.setItem('payLock__'+a,a);
    13. localStorage.setItem(tk,tk);
    14. if(window){
    15. window.location.reload();
    16. }
    17. })()

    https://poetries1.gitee.io/fe-interview/docs/guide.html