require(["dojo/_base/xhr"],
function(xhr) {
// Execute a HTTP GET request
xhr.get({
// The URL to request
url: "get-message.php",
// The method that handles the request's successful result
// Handle the response any way you'd like!
load: function(result) {
alert("The message is: " + result);
}
});
});
相关文章
- Linux 性能监控 —— Load Average
- LINUX下CPU Load Average的一点研究
- 使用pdfjs报错:Failed to load module script: Expected a JavaScript module script but the server responded
- chrome浏览器fitler中的XHR作用是什么
- Failed to load resource: the server responded with a status of 403
- dotnet部署出现Failed to load the dll from [ ... ], HRESULT: 0x80070057
- failed to load ldlinux.c32
- Load ContextCLR 探测
- 读取pkl文件报错_pickle.UnpicklingError: A load persistent id instruction was encountered
- XHR简介及基本使用