function(){ var msgList = [ 'test1', 'test2', ]; var nowIndex = 0; $('#btn').click(function(){ if(nowIndex < msgList){ if(nowIndex != 0) hideMsg(); showMsg(msgList[nowIndex]); } else { hideMsg(); $(this).unbind(); } } }
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |