TC官方合作论坛

 找回密码
 立即注册
查看: 1522|回复: 0

[问题] 为什么在浏览器控件里面有超链接不能正常点开?在IE正常

[复制链接]
发表于 2016-11-24 17:16:30 | 显示全部楼层 |阅读模式

马上加入TC

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
为什么在浏览器控件里面有超链接不能正常点开?在IE正常
LLQ.png 右键属性显示未知协议

链接是一个onclick事件 用IE8  IE9或者其他360猎豹什么的浏览器都可以正常点开  但是用TC的浏览器控件就打不开
我把代码贴出来吧
  1. onclick="watchCourseIf('262','2015','dc0a8d1ddfcc48338cdb1ff431d1789f','false','true','/u/cws/262/2015/dc0a8d1ddfcc48338cdb1ff431d1789f','false','true')

  2. 函数如下:
  3. function watchCourseIf(periodId,year,courseId,verifyApplyInfo,verifyWatchIf,watchUrl,requiredReclass,requiredCourse){
  4.                 if(requiredReclass == "false"){
  5.                                 if(requiredCourse != "true"){
  6.                                                 $("#studyRequireStrs").text("请您先完成当地要求的必学课程,才可以学习其它课程!");
  7.                                                 $('#studyRequirePw').skygqbox();
  8.                                                 return;
  9.                                         }
  10.                         }
  11.                
  12.                 var pageContext = $("#pageContext").val();
  13.                
  14.                 if(!verifyElectiveMinForceRule(periodId,year)){
  15.                         return false;
  16.                 }
  17.                
  18.                 if (verifyApplyInfo == "false" && verifyWatchIf == "false") {
  19.                         window.location.href=watchUrl;
  20.                 }
  21.                
  22.                 if (verifyApplyInfo == "true") {
  23.                         $.ajax({
  24.                                 type : "post",
  25.                                 url : encodeURI(pageContext + "/u/checkCourseApplyInfo/"),
  26.                                 dataType : "json",
  27.                                 async: false,
  28.                                 success : function(data) {
  29.                                         if(data!=true){
  30.                                                 if (verifyWatchIf == "false") {
  31.                                                         window.location.href=watchUrl;
  32.                                                 }
  33.                                         }else{
  34.                                                 $("#courseReStrs").text("对不起,请您先补充用户信息后再进行购课!");
  35.                                                 $('#coursePw').skygqbox();
  36.                                         }
  37.                                 }
  38.                         });
  39.                 }
  40.                
  41.                 if (verifyWatchIf == "true") {
  42.                         $.ajax({
  43.                                 type:"get",
  44.                                 async: false,
  45.                                 url:pageContext + "/u/verifyWatchIf?year=" + year + "&courseId=" + courseId + "&callback=?",
  46.                                 data:{},
  47.                                 dataType:"jsonp",
  48.                                 success:function(data){
  49.                                         if(data.verifyResult == "none"){
  50.                                                 window.location.href=watchUrl;
  51.                                         } else if (data.verifyResult == "toExercise"){
  52.                                                 if (data.i**erciseSelf){
  53.                                                         $("#studyRequireStrs").text("您已学完该课程了,赶快参加该课程的随堂练习考试吧!");
  54.                                                         $('#studyRequirePw').skygqbox();
  55.                                                 } else {
  56.                                                         $("#studyRequireStrs").text(" 您还没有参加《" + decodeURIComponent(data.operateCourseName) + "》课程的随堂练习考试,考试通过才能学习下一课程!");
  57.                                                         $('#studyRequirePw').skygqbox();
  58.                                                 }
  59.                                         } else if (data.verifyResult == "toContinueStudy"){
  60.                                                 if (data.isContinueStudySelf){
  61.                                                         window.location.href=watchUrl;
  62.                                                 } else {
  63.                                                         $("#studyRequireStrs").text("您还没有完成《" + decodeURIComponent(data.operateCourseName) + "》课程的学习,完成后才能学习下一课程!");
  64.                                                         $('#studyRequirePw').skygqbox();
  65.                                                 }
  66.                                         }
  67.                                 }
  68.                         });
  69.                 }
  70.         }
  71.         function doExercise(periodId,year,courseId,maxPracticeNum,havePracticeNum,verifyApplyInfo,verifyWatchIf){
  72.                 var examNum = maxPracticeNum-havePracticeNum;
  73.             if(maxPracticeNum == 0){
  74.                         operateExercise(periodId,year,courseId)
  75.                 }else if(examNum <= 0){
  76.                    $("#runOutPracticeStrs").text("对不起,您"+maxPracticeNum+"次未通过已用完所有机会,需重新开始学习");
  77.                    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>";
  78.                    $('#runOutPracticeDiv').html(text);
  79.                    $('#runOutPractice').skygqbox();
  80.                 }else{
  81.                         $("#confirmPracticeStrs").text("总共有"+maxPracticeNum+"次考试机会,剩余" + examNum + "次机会,是否继续?");
  82.                         var text = "<a href='javascript:operateExercise("+periodId+","+year+",""+courseId+"");' class='btn btn3 okBtn opsition'>开始考试</a><a href='javascript:;' class='btn btn4 clearBtn'>取消</a>";
  83.                        
  84.                         $('#confirmPracticeDiv').html(text);
  85.                         $('#confirmPractice').skygqbox();
  86.                 }
  87.         }
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条

关闭

小黑屋|TC官方合作论坛 (苏ICP备18045623号)

GMT+8, 2024-9-28 20:46 , Processed in 0.061020 second(s), 26 queries .

Powered by 海安简单软件服务部

© 2008-2019 版权所有 保留所有权利

快速回复 返回顶部 返回列表