Html 如何为安卓设备在爱奥尼亚中新打开的窗口添加关闭按钮?
我有这样的代码:Html 如何为安卓设备在爱奥尼亚中新打开的窗口添加关闭按钮?,html,angularjs,ionic-framework,Html,Angularjs,Ionic Framework,我有这样的代码: $scope.viewOrderDetails = function viewOrderDetails(detail) { var newWin = open('orderdetails.html','windowName','height=300,width=300'); newWin.document.write('html to write...'); newWin.document.write(detail); //<input t
$scope.viewOrderDetails = function viewOrderDetails(detail) {
var newWin = open('orderdetails.html','windowName','height=300,width=300');
newWin.document.write('html to write...');
newWin.document.write(detail);
//<input type="button" value="Close this window" onclick="self.close()">
}
$scope.viewOrderDetails=函数viewOrderDetails(细节){
var newWin=open('orderdetails.html','windowName','height=300,width=300');
newWin.document.write('html to write…');
newWin.document.write(细节);
//
}
我想给newWin添加关闭按钮。我怎样才能做到这一点?谢谢
更新:
newWin.document.write('<input type="button" value="Close this window" onclick="window.close()">');
newWin.document.write(“”);
它在爱奥尼亚服务中工作,但在我的pad设备中运行时,当我单击“关闭此窗口”时,窗口无法关闭。答案在您的问题中…您可以尝试此
newWin.document.write(“”)代码>谢谢,它在ionic serve中工作,但在我的pad设备中运行时,当我单击“关闭此窗口”时,窗口无法关闭。。。