D:\ mobile \ newionictwo> cordova运行windows - - phone运行命令:“C:\ Program Files \ nodejs \ node.exe”D:\ mobile \ newionictwo \ hooks \ after_prepare \ 010_add_platform_class.js D:\ mobile \ newionictwo添加到body类:platform-windows构建项目:D:\ mobile \ newionictwo \ platforms \ windows \ CordovaApp.Windows10.jsproj配置:debug平台:anycpu CordovaApp.Windows10 - > D:\ mobile \ newionictwo \ platforms \ windows \ AppPackages \ CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test \ CordovaApp.Windows10_0.0.1.0_an ycpu_debug.appx将windows10软件包部署到设备:D:\ mobile \ newionictwo \ platforms \ windows \ AppPackages \ CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test \ CordovaApp.Windows10_0 .0.1.0_anycpu_debug.appx试图删除以前安装的应用程序...错误:无法读取未定义的属性'__ip'
首先安装Windows Os 然后按照以下步骤操作 您需要添加Cordova Inappbrowser才能使用它。
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');
要么
window.open('http://apache.org','_system','location=no');
在使用之前,请务必检查设备准备状态或(离子)$ ionicPlatform.ready。
https://ionicframework.com/docs/v3/developer-resources/platform-setup/windows-setup.html
如果此命令不返回任何结果
"C:\Program Files (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe" devices
然后,您需要启动IP over USB服务
net start IpOverUsbSvc