我需要将数据或对象(条件)从 AngularJS 传递到 asp.net Web 中的 Crystal Report Viewer
AngularJS 代码:
$scope.OnPrint = function() {
$window.open('http://localhost:89/', '_blank');
};
谢谢。
最佳答案
使用查询字符串:
$scope.OnPrint = function() {
var param1 = '192';
var param2 = 'userReport';
$window.open('http://localhost:89/?param1=' + param1 + '¶m2=' + param2, '_blank');
};
关于javascript - 如何通过 window.open 传递数据或对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41867074/