且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以在这个专案中使用jQuery/javascript吗?

更新时间:2023-11-10 16:16:46

ROTFL !!!!那太好了.发布您的电子邮件地址是愚蠢的.该网站将向您发送任何答复,而不是向您发送垃圾邮件.

我建议您需要做一些基础研究,以了解您所使用的工具. js和jQuery在浏览器中运行,通常用于尝试更接近winforms应用程序可以提供的丰富体验.如果您不在浏览器中,则不能使用javascript.
ROTFL !!!! That''s brilliant. Posting your email address is stupid. The site will mail you any replies, and not spam you.

I would suggest you need to do some basic research to understand the tools you are using. js and jQuery run in a browser, and are typically used to try to come closer to the sort of rich experience that winforms apps can offer. If you''re not in the browser, no you can''t use javascript.


停止将电子邮件地址置于问题中……简直是愚蠢.

您可以在Windows Forms应用程序内部创建浏览器对象.然后,您可以将JavaScript注入到您在该浏览器对象中显示的网页中. JavaScript和C#代码可以相互通信.浏览器对象中显示的站点可能只是HTML代码,因此您不一定需要连接互联网即可运行您的应用程序.

为什么您问到有关在Windows Forms应用程序中使用jQuery和JavaScript的问题,我不知道.
Stop putting your email address in questions... that''s just dumb.

You can create a browser object inside of a Windows Forms application. You can then inject JavaScript into the webpage you display in that browser object. The JavaScript and C# code can communicate with eachother. The site displayed in the browser object could just be HTML code, so you don''t necessarily need an internet connection to run your application.

Why you asked about using jQuery and JavaScript in a Windows Forms application, I have no idea.