|zyciis| 如何在Jquery Ajax中的ajaxStart取得当前Ajax提交的url 谢谢 如题,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script src="js/jquery-1.3.2.js"></script><script> window.onload=function(){ $.ajaxSetup({ url: "test1.asp", global: true, type: "GET" }); $(document).ajaxStart(function(){ alert($.ajaxSettings.url); }); $.ajax({}); }</script> 不对,你这个是取默认的,我要的是如: $.ajax({ type: "POST", url: url, dataType: "json", });然后在哪一个方法可以在这个ajax提交前取得这个url <script src="js/jquery-1.3.2.js"></script><script> function doit(xhr, s){ alert(s.url)}window.onload=function(){ $.ajax({type:"POST",url:"test1.asp",dataType:"json",beforeSend:doit}); }</script> 关于ext怪异问题:为何我点击不同的对象,得到的值都是一样的? 如何强制frame操作在自己里面 jQuery LocationSelect Plugin this.items = []是什么意思啊? 网页自动加载代码如何解决? 如何避免提交表单时触发onbeforeunload事件? iframe无法刷新 setTimeout的一点小问题 哪位兄弟知道怎么禁止鼠标滚轮控制下拉框!!~~~~ 急需帮助!!!如何向动态产生的<type=file>中赋初值?期待中... 求个正则表达式…………………… 求个javascript 正则达式
<script>
window.onload=function()
{
$.ajaxSetup({
url: "test1.asp",
global: true,
type: "GET"
});
$(document).ajaxStart(function(){
alert($.ajaxSettings.url);
});
$.ajax({});
}
</script>
如: $.ajax({
type: "POST",
url: url,
dataType: "json",
});然后在哪一个方法可以在这个ajax提交前取得这个url
<script src="js/jquery-1.3.2.js"></script>
<script>
function doit(xhr, s){
alert(s.url)
}
window.onload=function()
{
$.ajax({type:"POST",url:"test1.asp",dataType:"json",beforeSend:doit});
}
</script>