如何在javascript中单击事件后限制用户? [英] How to restrict user after one click event in javascript?

查看:76
本文介绍了如何在javascript中单击事件后限制用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个下拉菜单4个选项,如果我选择一个选项并单击按钮,它将生成一个excel文件.再次,如果我选择另一个选项,则它不会生成excel文件.
对于生成,我需要刷新页面,然后才能生成页面.
所以告诉我解决方案是什么问题.

There is one dropdown 4 options,if i select one and click on button it generates one excel file.again if i select another option it is not generating the excel file.
For generaing i need to refresh the page then only it generates.
so tell me what is the problem with solution.

推荐答案

尝试在生成文件后禁用生成"按钮.
try to disable the generate button after generating the file.


这篇关于如何在javascript中单击事件后限制用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆