惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
The GitHub Blog
The GitHub Blog
小众软件
小众软件
美团技术团队
博客园 - 司徒正美
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
J
Java Code Geeks
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
V
V2EX
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog

博客园 - hateyoucode

http://tengine.taobao.org/ Mysql只Union用法 比较详细的mysql的几种连接功能分析,只要你看完就能学会的好东西 jq 判断单选是否选中 MSSQL中的bit类型 js 判断textarea 不为空 C# Split 分隔符为字符串及空格的处理 [转]asp.net中时间差的问题 [转]C# Array 数组 及 一些操作 [转]C#中out 及 ref 区别 [转]使用c# 模拟网站登录 RegisterStartupScript和RegisterClientScriptBlock的区别 asp.net 动态二维数组 - hateyoucode - 博客园 css html span 块状不换行 我们应该明确几个问题 asp.net操作XML PHP Header用于页面跳转要注意的几个问题总结 - hateyoucode - 博客园 关于PHP header函数跳转的问题 - hateyoucode - 博客园 生成xml - hateyoucode - 博客园
asp+ajax asp中ajax的中文乱码 - hateyoucode - 博客园
hateyoucode · 2010-07-01 · via 博客园 - hateyoucode

function ClassList(id)
{
 if(id>0)
 {
  var url = "Inc/ClassList.asp?ParentId="+id+"&rd="+Math.random();
  xmlHttp=GetXmlHttpObject(stateChanged)
  xmlHttp.open("GET", url , true)
  xmlHttp.send(null)
 }
}

function stateChanged()
{
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
  var txt=unescape(xmlHttp.responseText); /*在接收部分用js的编码转换*/
  if(txt!=null&&txt!="")
  {
   var ShuZu=new Array();
   var resp="";
   ShuZu=txt.split(",");
   for (var i=0;i < ShuZu.length; i++)
   {
    var lxsz=new Array();
    lxsz=ShuZu[i].split("|");
    resp=resp+"<a href="+lxsz[0]+">"+lxsz[1]+"</a>"
   }
   $("ErJiClass").innerHTML=resp;
  }
  else
  {
   $("ErJiClass").innerHTML="asdfasdf";
  }
 }
}

Response.Expires=-1
ParentId=Request.QueryString("ParentId")
Response.Write(escape(GetSmallClass("SmallClass",ParentId)))/*在发送部分用js转换*/