vbscript - VBScript 从 MVC 页面获取 XML
问题描述
我有一个现有的 MVC 网页。在 VBScript 中打开 MVC Page 后,当用户选择适用的 Item 时,返回 XML。如何从 VB 脚本中获取 XML?也许我需要让MVC页面调用一个VB函数作为回调,但我不知道怎么做。下面是我的 VB 脚本。
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = true
.Navigate "https://localhost:5002" ' website.com is example not the original
Do Until .document.readyState = "complete":
WScript.Sleep 100:
Loop
End With
解决方案
推荐阅读
- groovy - 使用 Groovy 解析嵌套 Json 中的值
- javascript - 一起使用 HTML、PHP 和 Javascript
- python - scikit-learn 中的 one-vs-rest 是如何实现的?
- delphi - Python4Delphi,支持不同的Unix安装
- python - Python中的学习函数
- python - Python BeautifulSoup find_all - 如何在 html 中搜索字符串,忽略 html 中的所有空格和不间断空格?
- mysql - MySQL 查询以获取所有用户看到的帖子
- java - 测试 JpaRepository findById 为 UUID 返回 null
- docker - 将 Apache Cassandra 连接到 DataGrip
- vba - 尝试将文件复制到 VBA 中的 Sharepoint 365 站点