以用户登录为例练习ajax的使用方法
login.html
<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta http-equiv=Content-Type content=text/html; charset=utf-8/>
<title></title>
[removed]
var obj = createobj();
function login(name, pwd)
{
var urlstr
1