Javascript如何发送一个Ajax请求
代码:
new Ajax.Request(‘/your_url’),
{
method : ‘get’,
onSuccess : function(transport){
var response = transport.responseText || “no response text”;
alert(“Success!”);
} ,
onFailure : function(){ alert(‘failure’)}
});
new Ajax.Request(‘/your_url’),
{
method : ‘get’,
onSuccess : function(transport){
var response = transport.responseText || “no response text”;
alert(“Success!”);
} ,
onFailure : function(){ alert(‘failure’)}
});
【Javascript如何发送一个Ajax请求】相关文章
2. ShellScript面试题一则-ShellScript编程
3. 软件测试LoadRunner面试题:What is a function to capture dynamic values in the web vuser script?
4. Oracle面试题:如何把一个表从一个schema到另一个schema
6. 什么是Deployment descriptors;都有什么类型的部署描述符
7. 软件测试LoadRunner面试题:If you want to stop the execution of your script on error, how do you do that?
8. .NET初级开发工程师面试题(包括Javascript)
10. 百度JavaScript笔试题
本文来源:https://www.mianshiwenti.com/a12814.html
进入下载页面
上一篇:一篇.NET面试题
下一篇:.NET概念性的面试题
﹝Javascript如何发送一个Ajax请求﹞相关内容
- 几个Shell Script面试题
- 若通过ObjectOutputStream向一个文件中多次以追加方式写入object,为什么用ObjectInputStream读取这些object时会产生StreamCorruptedExcepti
- 如何用PHP实现邮件发送
- Python面试题:如何用Python来发送邮件
- Servlet如何得到客户端机器的信息
- Servlet如何得到服务器的信息
- ASP.NET如何防止SQL注入
- 好的人际关系该如何发展
- 产假工资如何发放?
- 上海产假期间工资如何发放?