(function ($ang) { 'use strict'; $ang.module('ylmis').controller('fileFrameCtrl', function ($scope, $http, $alert, $modal, AuthUser, $state, $loading, $window, $timeout, $stateParams, $bsRouterState,$sce) { $stateParams = $bsRouterState.$params($scope); $scope.keyWords = $stateParams.keyWords; $scope.url = "http://10.160.8.64:8080/es/search.do?keyWords=" + decodeURI($scope.keyWords); //$scope.url = "http://www.baidu.com?keyWords=" + decodeURI($scope.keyWords); $scope.someUrl = $sce.trustAsResourceUrl($scope.url); }); })(angular);