从 iOS 仪器脚本调用 Javascript
我有一个适用于 iOS 的仪器 UI 自动化脚本,(在 javascript 中)
我想从此仪器 javascript 调用 .NET Web 服务。
对此有什么想法吗?
PS:我已经尝试了所有其他方法(如phonegap、XUI 等),但没有结果。
这些工作在普通的 javascript 上,而不是 ios 工具 Javascript 上
I have a instruments UI automation script for iOS,(in javascript)
I would like to call a .NET web service from this instruments javascript.
Any ideas on this ?
PS: I have tried all other methods (like phonegap, XUI etc etc) without results.
Those work on normal javascript not the ioS instruments Javascript
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用
UIAHost
的performTaskWithPathArgumentsTimeout
方法在 js 脚本中调用命令(例如 curl/wget)即可。请参阅:http://developer.apple。 com/library/ios/#documentation/UIAutomation/Reference/UIAHostClassReference/UIAHost/UIAHost.html
Simply call a command (curl/wget for example) in your js script with the method
performTaskWithPathArgumentsTimeout
ofUIAHost
.See : http://developer.apple.com/library/ios/#documentation/UIAutomation/Reference/UIAHostClassReference/UIAHost/UIAHost.html