0
爲什麼我會得到這個使用http放入角js更新json數據時出錯?
PUT文件:/// C:/用戶/用戶/文件/工作/ someapi /字/ 15網:: ERR_FILE_NOT_FOUND 當我更新
$http({
url: url + Id,
method: "PUT", //update
dataType: 'json',
data: JSON.stringify({
Id: '154',
word: $scope.new,
Date: new Date(),
}),
headers: {
'Content-Type': 'application/JSON'
}
})
.success(function(result) {
console.log(result);
})
上午不更新文件。我很困惑。
您可以分享您設置的網址嗎? –
@ Chander.k謝謝,網址缺少http:// :) – aye26