需要JavaScript吗? [英] JavaScript Needed?

查看:87
本文介绍了需要JavaScript吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,


很难在其他地方找到明确的答案-asp.net网站的客户端需要JavaScript还是C#可以完全正常工作(即使没有在客户端计算机上安装.net框架)?

在那里仍然使用一些JavaScript更好吗?


(我是新手,现在才学习C#)


感谢您的帮助...


Nath:-)

Hi friends,


It’s hard to find a clear answer elsewhere- Is JavaScript needed for the client-side in asp.net websites or will C# work totally fine (even without the .net framework installed on the clients machine) ??

Is it better to still use some JavaScript in there?


(I''m a newbie, just learning C# right now)


Thanks for the help...


Nath :-)

推荐答案

C#不能在客户端使用,需要使用JavaScript.使用JavaScript是否更好取决于您要完成的工作.如果您需要交互式站点或Ajax,则需要JavaScript.
C# can''t be used on the client-side, you need to use JavaScript. Whether it is better to use JavaScript or not depends on what you are trying to accomplish. If you need an interactive site or need Ajax, then yes JavaScript is required.


C#不能在客户端执行所有操作.假设您需要显示一个消息框并想要执行一个操作(基于用户是按确定"还是取消"),那么C#将无法工作.您需要在这里使用Javascript.我本人是新手,所以经验丰富的程序员可以用更加真实的方式讲述.
C# can''t do everything on client side. Lets suppose you need to show a message box and want to perfrom an action (based on whether user pressed OK or Cancel) then C# won''t work. You need Javascript here. I myself am newbie, so seasoned programmers can tell in more authentic way.


感谢您的帮助...:)
thank you for your help... :)


这篇关于需要JavaScript吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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