本帖最后由 youth2004 于 2014-12-4 16:59 编辑
能打开,就是不显示啊..你可以看看网页的源代码的.绿色的代码提示://----------------此处JSON出错
这个网页源代码是
[AppleScript] 纯文本查看 复制代码 <HTML><HEAD><META content="IE=7.0000" http-equiv="X-UA-Compatible">
<TITLE>助力云</TITLE>
<META charset=utf-8><!-- css -->
<META name=viewport content="width=device-width, initial-scale=1, user-scalable=no"><LINK rel=stylesheet type=text/css href="../css/bootstrap/bootstrap.min.css"><LINK rel=stylesheet type=text/css href="../css/bootstrap/font-awesome.min.css"><LINK rel=stylesheet type=text/css href="../css/site.min.css"><!-- script --><!-- jquery -->
<SCRIPT type=text/javascript src="../js/jquery/jquery-1.10.1.min.js"></SCRIPT>
<SCRIPT type=text/javascript src="../js/jquery/yangfo.js"></SCRIPT>
<!-- bootstrap -->
<SCRIPT type=text/javascript src="../js/bootstrap/bootstrap.min.js"></SCRIPT>
</HEAD>
<BODY style="ZOOM: 1" windowc_onresizez="true">
<SCRIPT>
function getPage(hasLogin) {
if(!hasLogin) {
return '../website/index.jsp';
}
var page = '3';
if(page == '1') {
return '../fee/buy.jsp';
}
if(page == '2') {
return '../learn/myCourse.jsp?type=1';
}
if(page == '3') {
return '../exam/examList.jsp';
}
if(page == '4') {
return '../exam/scoreList.jsp';
}
if(page == '5') {
return '../exam/scoreList.jsp';
}
return '../website/index.jsp';
}
function checkLogin() {
// 获取原Session
$.get("../service/restful/session", function(result){
if(result == null) return;
var json = JSON.parse(result);
if(json.status == 0) {
top.location.href = getPage(true);
return;
}
// 检查登录信息
$.ajax({
type : "get",
async: false,
url : "http://member.zkrspx.com/service/restful/session?spam=1417682857286",
dataType : "jsonp",
jsonp: "jsoncallback",
success:function(result){
if(result == null) return;
var json2 = JSON.parse(result);//----------------此处JSON出错
if(json2.status != 0) {
top.location.href = getPage(false);
return;
}
// 将获得的用户信息存入Session,然后刷新当前页面
$.ajax({
type : "post",
async: false,
url : "../service/restful/session?_method=put",
data: JSON.stringify(json2),
dataType : "jsonp",
jsonp: "jsoncallback",
success:function(result3){
// alert('result3 ' + result3);
if(result3 == null) return;
var json3 = JSON.parse(result3);
if(json3.status == 0) {
top.location.href = getPage(true);
return;
}
},
error:function() {
top.location.href = getPage(false);
return;
}
});
},
error:function() {
top.location.href = getPage(false);
return;
}
});
});
}
checkLogin();
</SCRIPT>
</BODY></HTML>
|