AJAX中,Request.onreadystatechange=function(){};代表回调函数
昨天需要传参数给这个function,代码如下:
Find.Request.onreadystatechange=Find.ResponsePassword(id);//Find:类名
结果不行。看来回调函数只能写个方法名,不能有参数。
PS:还发现一个小问题:.NET中的TextBox,用 Enable可以开启、禁用TextBox,而在客户端HTML,用的是 disabled来开启、禁用input。
昨天需要传参数给这个function,代码如下:
Find.Request.onreadystatechange=Find.ResponsePassword(id);//Find:类名
结果不行。看来回调函数只能写个方法名,不能有参数。
PS:还发现一个小问题:.NET中的TextBox,用 Enable可以开启、禁用TextBox,而在客户端HTML,用的是 disabled来开启、禁用input。