如何在不刷新页面的情况下多次调用函数

如何在不刷新页面的情况下多次调用函数

本文介绍了如何在不刷新页面的情况下多次调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp:abel和一个asp:Button,所以我想在单击按钮时更改此Label文本,但是用户只想单击一次,而lable的文本却在不刷新页面的情况下连续变化. />
我创建了一个唯一的随机函数和wnat,以指定的时间间隔在单按钮单击上调用此函数,并将该随机数分配给该标签

而且我已经使用

I have one asp:abel and one asp:Button so i want to change this Label text on single clicking on button but user want to click only one time and the text of lable is changing continuously without refreshing a page.

i have created one unique random function and wnat to call this function on single button clik with specified time interval and assign this random number to that label

and I have arrange numbers in tabular form using

标签以表格形式排列数字,没有任何例如

1 | 12 | 23 | 34 | 45 | 56 | 67 | 78 | 89
2 ...................... 90
3 ...................... 91
4 ...................... 92
5 ...................... 93
6 ...................... 94
7 ...................... 95
8 ...................... 96
9 ...................... 97
10 ..................... 98
11 ..................... 99
并且在更改标签文本的同时要更改颜色或在div标签中标记该数字表示上述arragement
tag there is no any e.g

1|12|23|34|45|56|67|78|89
2......................90
3......................91
4......................92
5......................93
6......................94
7......................95
8......................96
9......................97
10.....................98
11.....................99
and at the same time when label text is change want to change a color or mark that number in div tag means stated above arragement

推荐答案




这篇关于如何在不刷新页面的情况下多次调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 20:20