webview UWP中的[UWP] jquery [英] [UWP]jquery in webview UWP
问题描述
大家好。
在我的UWP项目中,我使用webview来显示内容。在不同的情况下,我应该能够在导航完成后在我的webview中运行javascript代码。
In my UWP project I'm using webview for displaying content. In different cases I should be able to run javascript code in my webview when navigation is completed.
所以我的问题是可以在UWP webview中执行jQuery脚本吗?
So my question is it possible to execute jQuery script in UWP webview?
非常感谢
推荐答案
是的,webview与Edge使用的EdgeHMTML和Chakra JavaScript引擎相同 几乎任何在Edge中工作的东西都应该在WebView中工作。
Yes, the webview the same EdgeHMTML and Chakra JavaScript engines that Edge uses. Pretty much anything that works in Edge should work in the WebView.
只要你的页面包含对常规页面等jQuery库的引用,那么使用jQuery就不会有问题了。访问该页面上的元素。
As long as your page includes references to the jQuery libraries like a regular page, then you shouldn't have problems using jQuery to access elements on that page.
这篇关于webview UWP中的[UWP] jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!