- function ajax_driv(){
- var xmlhttp;
- if (window.ActiveXObject){
- /* 不要刪除以下注釋,這部分不是註釋 */
- /*@cc_on @*/
- /*@if (@_jscript_version >= 5) try {
- xmlhttp = new ActiveXObject("Msxml2.xmlhttp");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.xmlhttp");
- } catch (e) {
- xmlhttp = false;
- }
- }
- @end @*/
- }else{
- xmlhttp=new XMLHttpRequest();
- }
- if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
- xmlhttp = new XMLHttpRequest();
- }
- return xmlhttp;
- }
ajax驅動
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.