0
創建HTTP我的網址寫角資源角資源在HTTPS
factory('DataRow', ['$resource', function($resource){
return $resource('/:module/rows/:id', null,
{
query: {isArray: false},
}
);
}]).
DataRow.query(params,
function(data){ $scope.data = data.results;
$scope.count = data.count;
$scope.headers = [];
if ($scope.module == 'result' && data.results.length > 0){
var headers_obj = JSON.parse(data.results[0].items);
for (var i in headers_obj){
$scope.headers.push(i);
}
}
},
我在服務器https://example.com所有其他資源工作正常使用此代碼,但在使用該資源它要求以http://example.com作爲根網址?這個資源如何創建一個完整的網址?