百度空间 | 百度首页 
 
查看文章
 
XMLHttpReq.onreadystatechange传递参数 ajax javascript 参数的传递。
2009-10-27 18:31
由于“xmlhttp.onreadystatechange= xx(123);”,这样使用回调函数是行不通的,因此要给回调函数传递参数应改成以下形式:
xmlhttp.onreadystatechange= function(){xx(123)};
或者
xmlhttp.onreadystatechange= new Function("xx(123)");

类别:电脑网络技术 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu