TC官方合作论坛
标题:
为什么在浏览器控件里面有超链接不能正常点开?在IE正常
[打印本页]
作者:
a520happy
时间:
2016-11-24 17:16
标题:
为什么在浏览器控件里面有超链接不能正常点开?在IE正常
为什么在浏览器控件里面有超链接不能正常点开?在IE正常
LLQ.png
(12.4 KB, 下载次数: 2)
下载附件
2016-11-24 17:11 上传
右键属性显示未知协议
链接是一个onclick事件 用IE8 IE9或者其他360猎豹什么的浏览器都可以正常点开 但是用TC的浏览器控件就打不开
我把代码贴出来吧
onclick="watchCourseIf('262','2015','dc0a8d1ddfcc48338cdb1ff431d1789f','false','true','/u/cws/262/2015/dc0a8d1ddfcc48338cdb1ff431d1789f','false','true')
函数如下:
function watchCourseIf(periodId,year,courseId,verifyApplyInfo,verifyWatchIf,watchUrl,requiredReclass,requiredCourse){
if(requiredReclass == "false"){
if(requiredCourse != "true"){
$("#studyRequireStrs").text("请您先完成当地要求的必学课程,才可以学习其它课程!");
$('#studyRequirePw').skygqbox();
return;
}
}
var pageContext = $("#pageContext").val();
if(!verifyElectiveMinForceRule(periodId,year)){
return false;
}
if (verifyApplyInfo == "false" && verifyWatchIf == "false") {
window.location.href=watchUrl;
}
if (verifyApplyInfo == "true") {
$.ajax({
type : "post",
url : encodeURI(pageContext + "/u/checkCourseApplyInfo/"),
dataType : "json",
async: false,
success : function(data) {
if(data!=true){
if (verifyWatchIf == "false") {
window.location.href=watchUrl;
}
}else{
$("#courseReStrs").text("对不起,请您先补充用户信息后再进行购课!");
$('#coursePw').skygqbox();
}
}
});
}
if (verifyWatchIf == "true") {
$.ajax({
type:"get",
async: false,
url:pageContext + "/u/verifyWatchIf?year=" + year + "&courseId=" + courseId + "&callback=?",
data:{},
dataType:"jsonp",
success:function(data){
if(data.verifyResult == "none"){
window.location.href=watchUrl;
} else if (data.verifyResult == "toExercise"){
if (data.i**erciseSelf){
$("#studyRequireStrs").text("您已学完该课程了,赶快参加该课程的随堂练习考试吧!");
$('#studyRequirePw').skygqbox();
} else {
$("#studyRequireStrs").text(" 您还没有参加《" + decodeURIComponent(data.operateCourseName) + "》课程的随堂练习考试,考试通过才能学习下一课程!");
$('#studyRequirePw').skygqbox();
}
} else if (data.verifyResult == "toContinueStudy"){
if (data.isContinueStudySelf){
window.location.href=watchUrl;
} else {
$("#studyRequireStrs").text("您还没有完成《" + decodeURIComponent(data.operateCourseName) + "》课程的学习,完成后才能学习下一课程!");
$('#studyRequirePw').skygqbox();
}
}
}
});
}
}
function doExercise(periodId,year,courseId,maxPracticeNum,havePracticeNum,verifyApplyInfo,verifyWatchIf){
var examNum = maxPracticeNum-havePracticeNum;
if(maxPracticeNum == 0){
operateExercise(periodId,year,courseId)
}else if(examNum <= 0){
$("#runOutPracticeStrs").text("对不起,您"+maxPracticeNum+"次未通过已用完所有机会,需重新开始学习");
var text = "<a href='javascript:;' class='btn btn3 okBtn opsition' onclick='restudy("+periodId+","+year+",\""+courseId+"\",\""+verifyApplyInfo+"\",\""+verifyWatchIf+"\")'>确定</a><a href='javascript:;' class='btn btn4 clearBtn'>取消</a>";
$('#runOutPracticeDiv').html(text);
$('#runOutPractice').skygqbox();
}else{
$("#confirmPracticeStrs").text("总共有"+maxPracticeNum+"次考试机会,剩余" + examNum + "次机会,是否继续?");
var text = "<a href='javascript:operateExercise("+periodId+","+year+",\""+courseId+"\");' class='btn btn3 okBtn opsition'>开始考试</a><a href='javascript:;' class='btn btn4 clearBtn'>取消</a>";
$('#confirmPracticeDiv').html(text);
$('#confirmPractice').skygqbox();
}
}
复制代码
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1