zoukankan      html  css  js  c++  java
  • asp.net updatepanel 导致JS不能加载,而无法使用

    asp.net updatepanel 局部刷新,导致JS不能加载,而无法使用,而且 updatepanel会刷两次,郁闷的。

    解决方法如下:

    <script type="text/javascript" language="javascript">
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(function () {
            // re-bind your jquery events here  
            $(document).ready(function () {
            
    
    //begin var span = $("input[id*='txtSpan']"); span.focusout(function () { if (span.val() == 0) { $("#spRule").show(); $("input[id*='btnSave']").attr("disabled","disabled"); } else { $("#spRule").hide(); $("input[id*='btnSave']").removeAttr("disabled"); } }); //end
    }); } );
    </script>
  • 相关阅读:
    打印日志宏定义
    数据库读写操作
    SQL语句组成
    MySQL数据库的使用
    ubuntu下解决MySQL 1045 error
    css样式优先级
    redis
    dubbo
    maven
    Mybatis笔记
  • 原文地址:https://www.cnblogs.com/vipsoft/p/3252474.html
Copyright © 2011-2022 走看看