我使用xampp v3.2.1,os是windows 10 Prof. 在这里我使用.htaccess文件重写url。它在核心php文件中工作正常。这里我使用bootstrap 2模板。当我使用url重写它的对齐是不正确的。在这里,我使用view->源检查输出,并使用在线代码工具进行比较。两个输出都相同(相同)。但结果显示不同。我附上了输出
这里是我的.htaccess代码
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /o2b2b/
RewriteRule ^search/([a-zA-Z0-9]+)$ search.php?=$1
</IfModule>
答案 0 :(得分:0)
谢谢我找到了解决方案 请使用此html标记
提及基本路径$scope.getProfile = function() {
Account.getProfile()
.then(function(response) {
$scope.user = response.data;
})
.catch(function(response) {
toastr.error(response.data.message, response.status);
});
};
$scope.updateProfile = function(file) {
file.upload = Upload.upload({
url: '/kilo/api/me',
data: {username: $scope.user.username, file: file },
method:"POST"
});
file.upload.then(function (response) {
$timeout(function () {
file.result = response.data.message;
console.log(file.result);
});
}, function (response) {
if (response.status > 0)
$scope.errorMsg = response.status + ': ' + response.data;
}, function (evt) {
// Math.min is to fix IE which reports 200% sometimes
file.progress = Math.min(100, parseInt(100.0 * evt.loaded / evt.total));
});
};