zoukankan      html  css  js  c++  java
  • js 调试问题

    ***********06.  $(this).index() 失效******************************

    使用的库函数jquery 版本过低,1.4以上即可

    ***********05. 加载图片后再加载相应的JS******************************

    01.$("").load(function(){...});    

    document.getElementById("").onload = function() {}; 

    ***********04. IE7 json不兼容(G.util.parse2.url();)******************************

       1.  语法问题 ,去掉最后的逗号及分号即可

    2. 

    var options = {
        stepTime: 60,
        // startTime and format MUST follow the same format.
        // also you cannot specify a format unordered (e.g. hh:ss:mm is wrong)
        format: "hh时mm分ss秒",
        startTime: "01时12分32秒",
        digitImages: 6,
        digitWidth: 22,
        digitHeight: 32,
        timerEnd: function(){},
        image: "zq8_num.png"
      }

    options.startTime[i]  ie7 不能将字符串直接当成数组用;var obj2 = options.startTime.split 
    ("");

    obj2[i]

    ***********03. css3 ie6-ie8 降级处理******************************

    //ie6-ie8
            if ($.browser.msie && ($.browser.version <= "8.0") && !$.support.style) { 
                //代码
                if($(window).width()<1024){
                    $("#home_con,.nbanner").width(1000);
                    $("#header,#footer,.content").width(950);
                    } 
                
            } 
            $(window).resize(function(){
            if ($.browser.msie && ($.browser.version <= "8.0") && !$.support.style) { 
                //代码
                if($(window).width()<1024){
                    $("#home_con,.nbanner").width(1000);
                    $("#header,#footer,.content").width(950);
                    } 
                
            } 
            })//end

    *****************************************************

    2.  切记样式名不能使用中划线: loginpassword—tip  应使用loginpassword_tip;否则ie7及以下版本不兼容

      ie7下 输入框 获得焦点后 默认文字 无法实现隐藏的效果( 默认文字 是浮在输入框 上的)

    1、ie6 提示窗显示   缺少 "}" 等, 先试着删除 js代码里的 中文注释 

  • 相关阅读:
    [转载]MATLAB 图像处理命令
    html Window与document区别(轉)
    ICMP数据包结构(转)
    CString,string,char*之间的转换(转)
    word或dword区别
    VS2010 皮肤扩展
    Unicode _T和L和_TXET
    转:git 的常用命令
    git fetch 和 git pull 的区别
    mac git 命令自动补全
  • 原文地址:https://www.cnblogs.com/aimyfly/p/3413962.html
Copyright © 2011-2022 走看看