function relink()
{
url = '';
url += "ms=" + document.getElementById('ms').value;
url += "&group="+ document.getElementById('group').value;
//AJAX 开始
if (window.ActiveXObject){xmlHttpPermission = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest){ xmlHttpPermission = new XMLHttpRequest();}
var url = "./set_to_group.php?" + url;
//alert(url);
xmlHttpPermission.open("GET", url, true);
xmlHttpPermission.onreadystatechange = function ()
{
if (xmlHttpPermission.readyState == 4 && xmlHttpPermission.status == 200 )
{
//alert( xmlHttpPermission.responseText.toString());
if( xmlHttpPermission.responseText.toString() == 'true' )
window.close();
}
}
xmlHttpPermission.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttpPermission.setRequestHeader("If-Modified-Since","0");
xmlHttpPermission.send( null );
}
下载 jQuery
存在两份 jQuery 拷贝可供下载,一是缩小版(由 Google Closure Compiler),另一个是未压缩版(供 debugging 或 reading)。
两份拷贝均可以从 jQuery.com 下载(左键点击然后另存为):
jQuery minfied (23K)
jQuery regular (154K)
使用 Google 的 CDN
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs
/jquery/1.4.0/jquery.min.js"></script>
</head>
使用 Microsoft 的 CDN
<head>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery
/jquery-1.4.min.js"></script>
</head>