为什么我们在asp.net中使用切换功能? [英] Why we use toggle function in asp.net?

查看:71
本文介绍了为什么我们在asp.net中使用切换功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们在Ajax中使用切换功能以及开发软件应用程序的功能有哪些??

Why we use toggle function in Ajax and also what are the features for developing a software application.?

推荐答案

假设有一个按钮和一个灯泡图像在你的网页上。



要求可能是如果你点击按钮一次,图像应该改变(一个灯泡发光的img),如果你点击按钮再次,灯泡img应该改回其原始状态(即关闭灯泡)。



在这种情况下,您可以使用此切换功能。不需要另外一个按钮来关闭灯泡(相关功能)..



希望它有所帮助:)
Lets say there is a button and a bulb image in your webpage.

The requirement may be If you click on button once, the image should change(a img with a bulb glowing) and if you click on the button again the Bulb img should change back to its orginal state (i.e a turned off bulb).

In this situation you can use this toggle functionality. There is no need of another button to make bulb off(related functionality)..

Hope it helps :)


这篇关于为什么我们在asp.net中使用切换功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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