1 Star 8 Fork 3

锅巴汉化 / cookieClicker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ajax.js 494 Bytes
一键复制 编辑 原始数据 按行查看 历史
ozh 提交于 2014-02-13 22:18 . Init
function ajax(url,callback){
var ajaxRequest;
try{ajaxRequest = new XMLHttpRequest();} catch (e){try{ajaxRequest=new ActiveXObject('Msxml2.XMLHTTP');} catch (e) {try{ajaxRequest=new ActiveXObject('Microsoft.XMLHTTP');} catch (e){alert("Something broke!");return false;}}}
if (callback){ajaxRequest.onreadystatechange=function(){if(ajaxRequest.readyState==4){callback(ajaxRequest.responseText);}}}
ajaxRequest.open('GET',url+'&nocache='+(new Date().getTime()),true);ajaxRequest.send(null);
}
JavaScript
1
https://gitee.com/likexia/cookieClicker.git
git@gitee.com:likexia/cookieClicker.git
likexia
cookieClicker
cookieClicker
master

搜索帮助