JSFiddle - React, Tailwind, and code Playground

by daijie

HTML

some contents here

JavaScript

var wait=5; //等5秒
setTimeout(function(){
    alert('走啦');
    document.location.href='http://g.cn';
}, wait * 1000);