fileFrame.js 589 B

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