Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 在WebBrowser Windows Phone中运行脚本_Windows Phone - Fatal编程技术网

Windows phone 在WebBrowser Windows Phone中运行脚本

Windows phone 在WebBrowser Windows Phone中运行脚本,windows-phone,Windows Phone,我有以下问题:我检索广告作为脚本 <script>...</script> 。。。 为了正确显示广告,脚本需要使用webiste。我尝试下载网站html,插入脚本并运行,但整个网站开始加载,我的目标是只运行脚本。如果使用Windows Phone 8,则可以使用方法(WebBrowser)。 如果您使用Windows Phone 8.1-您可以使用methos(WebView)问题是我的内部没有可以调用的函数。您是否有要在webbrowser中运行的脚本?是的,但该脚

我有以下问题:我检索广告作为脚本

<script>...</script>
。。。

为了正确显示广告,脚本需要使用webiste。我尝试下载网站html,插入脚本并运行,但整个网站开始加载,我的目标是只运行脚本。

如果使用Windows Phone 8,则可以使用方法(WebBrowser)。
如果您使用Windows Phone 8.1-您可以使用methos(WebView)

问题是我的内部没有可以调用的函数。您是否有要在webbrowser中运行的脚本?是的,但该脚本需要使用来自webiste的其他脚本。它有“”,但该文件夹只能在网站上访问,因此需要一个连接,就像它是“网站地址/文件夹”。类似于此,我需要使用基本uri运行脚本。您可以在webniew加载事件触发后调用scrip。或者,您可以在编辑后从url加载所有html,并在编辑后将其加载到wibView。