zoukankan      html  css  js  c++  java
  • fuck-KUNLUN昆仑ECRS会员管理系统

    写代码要认证一点,多一点测试, 

    navigator.appName == 'Netscape'
    这么垃圾的代码都能写出来,握草。

    怕时间就了就忘记怎么搞的了,MD经过前端各种断点,找到了这个垃圾玩意儿。

    />include>includefile.asp

    删掉这个判断就好了if (navigator.appName == 'Netscape')
    直接所有浏览器都执行else里面的操作。

    <!DOCTYPE html>
    <html>
    <head>
        <title>Javascript中点击事件方法三</title>
      <script type="text/javascript">
        var a =123;
        var fn =eval(a);
        alert(a);
            function test(){
                alert("hello world");
            }
        </script>
    </head>
    <body>
        <button id="btn" onclick="test()">click</button>
    </body>
    </html>
    
    
    靠没看见最关键的一句
    if (navigator.appName == 'Netscape')
    下面写的代码是错误的,直接删掉
    
    
    
    table 里面的systel="DISPLAY:none"   修改成DISPLAY:show或者hide
    
    includefile 里面的js文件经过断点调试 
    obj.visibility 在谷歌浏览器里面获取不到参数
    
    function clikker(islast,block,arrow,srcimg) 
    { //点
    var lastone
    if (islast==1)
    {lastone=true;}
    else
    {lastone=false;}; 
    if (navigator.appName == 'Netscape')
    {
          var obj,imgobj1,imgobj2
          obj=eval(block);
          imgobj1=eval(arrow);
          imgobj2=eval(srcimg);
          if (obj.visibility=='hide')
          {
              obj.visibility='show';
              if (lastone)
               {
                 imgobj1.src='images/t_minul.gif';
               }
              else
               {
                 imgobj1.src='images/t_minu.gif';
               };
              //imgobj2.src='images/t_folder.gif';    
            imgobj2.className='icon-folder-close';
           }
          else
          {
              obj.visibility='hide';
              if (lastone)
               {
                  imgobj1.src='images/t_plusl.gif';
               }
              else
               {
                  imgobj1.src='images/t_plus.gif';
               };     
              //imgobj2.src='images/t_open.gif';    
            imgobj2.className='icon-folder-open';
          };
      }
    else

    垃圾中的垃圾,算了都侮辱垃圾这个词语。

  • 相关阅读:
    Typora标题自动编号+设定快捷键技巧
    配置redis 4.0.11 集群
    学会使用 Mysql show processlist 排查问题
    Golang学习的方法和建议
    日志文件删除shell脚本
    运维趋势2019年总结,运维就是要做到"技多不压身"
    我的xshell配色方案,绿色/护眼/留存/备份
    对于api接口的爬虫,通常的解决方法
    maven 打包和构建的Linux命令(mvn)
    Istio的流量管理入门-charlieroro编写
  • 原文地址:https://www.cnblogs.com/landv/p/11119717.html
Copyright © 2011-2022 走看看