专灭零回复贴
解决方案 »
- JS动态生成复选框 求助!!!
- 问一下有关视频网页分享接口规范(分享至QQ空间、百度空间等)
- 求助jquery tokeninput 自动补全插件相关问题
- 求助:javascript实现自动完成时间格式的代码
- 为什么在htm页中包含的js脚本文件,在aspx页中不能运行??
- 为什么对象属性读不出来
- 一个关于javascript读取xml的问题
- 高级问题!高手请进!
- <INPUT TYPE="FILE" NAME="FILE1" SIZE="50">,请问如何用js判断浏览选中的文件是.doc文件
- 谁能解决javascript屏蔽键盘的printsceen
- Js如何取得a所在的ul id
- 关闭子窗体同事刷新父窗体。
{
g_xmlhttp = xml_http;
}
function downloaddata(url, callbackfunc)
{
if (!getxmlhttp())
{
var xml_http = createxmlhttp();
setxmlhttp(xml_http);
} g_xmlhttp.onreadystatechange = callbackfunc;
g_xmlhttp.open("GET", url, true);
g_xmlhttp.send(null);
}
括号乱七八糟的。严重鄙视 帖代码 不格式化......。不过用MyEclipse 写JS 还是可以原谅的
1.!getxmlhttp() 这个方法在哪,没有看到。
2.function setxmlhttp(xml_http)
{
g_xmlhttp = xml_http;
} 为什么 要多加这一段,没有必要。又不是JAVABEAN,玩什么 setter,getter
function downloaddata(url, callbackfunc){
var xml_http = createxmlhttp();
xml_http.onrea...........=callbackfunc;
xml_http.open(..........);
xml_http.send(.........);
}
搞这么多。