[英]How to pass data or object by window.open
我需要將數據或對象(條件)從AngularJS傳遞到asp.net Web中的Crystal Report Viewer。
AngularJS代碼:
$scope.OnPrint = function() {
$window.open('http://localhost:89/', '_blank');
};
謝謝。
您可以使用查詢字符串:
$scope.OnPrint = function() {
$window.open('http://localhost:89/?param1=value¶m2=value', '_blank');
};
使用查詢字符串:
$scope.OnPrint = function() {
var param1 = '192';
var param2 = 'userReport';
$window.open('http://localhost:89/?param1=' + param1 + '¶m2=' + param2, '_blank');
};
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.