xpban2006 2016-05-27 08:08 采纳率: 25%
浏览 2592

javascript ,为什么在电脑浏览器上能正常运行,在手机上就运行不了没反应,先谢谢啦!

    <script language="Javascript">

            function prev(preva,prevb,prevc){
//              document.getElementById("status").value="prev";
                if (prevc==1) 
                  {
                document.getElementById("answer").action="examwap_anli.asp?id="+preva+"&i4="+prevb;
                //alert(document.getElementById("answer").action);
                }
                else
                  {
                document.getElementById("answer").action="examwap_pd.asp?id="+preva+"&i3="+prevb;
                alert("现在进入判断题最后一题!");}     
                funtj();    
                document.answer.submit();


            }

            function next(nexta,nextb,nextc){
//              document.getElementById("status").value="next";
                if (nextc==1) 
                {
                document.getElementById("answer").action="examwap_anli.asp?id="+nexta+"&i4="+nextb;
                //alert(document.getElementById("answer").action);
                }
                else
                  {
                document.getElementById("answer").action="examwap_dx.asp?id="+nexta+"&i1="+nextb;
                alert("现在进入单选题第一题!");}    
                funtj();
                document.answer.submit();
}
</script> 

<script language="javascript">
function funtj(){
    <!--jc第一题s-->
        iSumA="(1)<br/>"
        <%
        anwsa=jc_anli.Fields.Item("anwsa").Value
        if anwsa>0 and anwsa<>0 then %>

             <% for i=1 to anwsa%>            
                jsxxao<%=i%>=window.self.document.answer.num1<%=i%>A.options(window.self.document.answer.num1<%=i%>A.selectedIndex).value+":"+window.self.document.answer.num1<%=i%>B.options(window.self.document.answer.num1<%=i%>B.selectedIndex).value+":"+window.self.document.all.num1<%=i%>C.value+"<br/>"
                 iSumA=iSumA+jsxxao<%=i%>;
             <%next %>   
        <%else%>
            <% for i=1 to abs(anwsa)%>
                jsxxao<%=i%>=window.self.document.all.num1<%=i%>.value+"<br/>"
                iSumA=iSumA+jsxxao<%=i%>;
            <%next%>
        <%end if%>
    <!--jc第一题e-->
    <!--fg第一题s-->
       <%if anwsa=0 then %>
           var rusult="";
           var check_array=document.getElementsByName("anwsa");
           for(var i=0;i<check_array.length;i++)
           {
               if(check_array[i].checked==true)
               {         
                  rusult=rusult+check_array[i].value;
               }
           }
           iSumA="(1)"+rusult+"<br/>";
       <%end if%>
    <!--fg第一题e-->
    </script> 
![图片说明](https://img-ask.csdn.net/upload/201605/27/1464336893_850252.png) 
  • 写回答

3条回答

  • qq_33919826 2016-05-27 08:31
    关注

    你这种情况应该涉及响应式开发了。建议楼主去了解一下

    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值