iframe 嵌入

cshtml页面:

 

<div ng-controller="app.report.views.bigCustomer.shunFeng.Report as vm">
<iframe style="height:1000px;width:100%" id="bigCustomer"></iframe>
</div>

 

 

js页面  angular写法

(function () {
angular.module('app').controller('app.report.views.bigCustomer.shunFeng.Report', [
'$scope',
function ($scope) {
var userid = abp.session.userId; //获取输入的用户名
var iframe = document.getElementById("bigCustomer");
iframe.src = "{{url}/webroot/decision/view/report?viewlet=bigCustomer.cpt&userid=" + userid +"&__bypagesize__=false"

}
]);
})();

posted @   紫心落  阅读(292)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示