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);
}
});
});
相关文章
- ImportError:DLL load failed,找不到指定模块的解决办法
- Visual Studio 2008 Package Load Failure:未能正确加载包“Microsoft.VisualStudio.Xaml”
- LOAD - 装载或重载一个共享库文件
- Eclipse Failed to load D:\android-sdk-windows\build-tools\27.0.3\lib\dx.jar
- 前端多媒体(2)—— xhr异步接收处理二进制数据
- clojure之路:Emacs+clojure环境搭建,"File error: Cannot open load file, inversion" "clojure update-first"问题解决
- dojo/query源码解析
- Dojo初探之2:设置dojoConfig详解,dojoConfig参数详解+Dojo中预置自定义AMD模块的四种方式(基于dojo1.11.2)
- Failed to load the JNI shared lib...
- ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR is set correctly.