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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网

博客园 - cyberghost

Padavan 路由器配置 Cloudflare DDNS Linux关闭占用特定端口的进程 Jackson反序列化泛型List Oracle SQL Developer更改DATE日期的显示格式 解决Navicat导入psc备份文件数据为空 Maven配置环境变量 org.hibernate.LazyInitializationException: could not initialize proxy - no Session Maven项目导出jar包 Eclipse配置Go语言开发环境(GoEclipse) Maven项目设置JDK版本 PowerDesigner16下载和破解 Ubuntu安装JDK配置环境变量 Ubuntu添加eclipse快捷方式 JDK配置环境变量 springMVC获得HttpServletRequest对象 Struts Action返回xml FusionCharts Free解决setDataURL中文乱码 使用FusionCharts Free显示图表(JSP) Java判断指定日期是星期几
Ajax实现表单验证
cyberghost · 2013-06-19 · via 博客园 - cyberghost
<script type="text/javascript">
        var xmlhttp;
        function init(){
            if(window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp=new XMLHttpRequest();
            }else{// code for IE6, IE5
                  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
        function callback(){
            if(xmlhttp.readyState==4 && xmlhttp.status==200){
                document.getElementById("tishi").innerHTML=xmlhttp.responseText;
            }
        }
        function yanzheng(){
            var name=document.getElementById("name").value;
            xmlhttp.onreadystatechange=callback;
            xmlhttp.open("GET","yanzheng.action?name="+name,true);
            xmlhttp.send(null);
        }
        window.onload=init;
    </script>