x-av 2017-05-08 06:48 采纳率: 0%
浏览 790

点击查询按钮绑定datagrid 始终没反应 ashx页面调试不到

 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="tes.aspx.cs" Inherits="query_tes" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>危化品存放时间预警</title>
    <link href="../jquery-easyui-1.4.5/demo/demo.css" rel="stylesheet" />
    <link href="../jquery-easyui-1.4.5/themes/default/easyui.css" rel="stylesheet" id="easyuiTheme" />
    <link href="../jquery-easyui-1.4.5/themes/icon.css" rel="stylesheet" />
    <script src="../jquery-easyui-1.4.5/jquery.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        function reloadGrid1() {
            var ashxurl = "../query/ashx/queryData.ashx?action=dateWarningList&r=" + Math.random();
            //var cxms = $('#cxms').combobox("getValue");
            $('#tt').datagrid('loadData', { total: 0, rows: [] });
            $("#tt").datagrid({
                dataType: 'json',
                nowrap: false,
                pagination: true,
                rownumbers: true,
                fit: true,
                method: 'post',
                queryParams: {
                },
                loadMsg: '数据加载中请稍后……',
                url: ashxurl,
                pageSize: 20,
                pageList: [20, 50, 100],
                onBeforeLoad: function (row, param) {
                    if (row) {

                    }

                }
                , onLoadSuccess: function () {
                    //setcname("cname");//设置sds链接
                    alert(1);
                }
                , onLoadError: function () {
                    alert(2);
                }
            });
        }
        function doSearch() {
            reloadGrid1();
        }
    </script>
</head>
<body style="padding: 1px 4px 0 2px;">
    <a href="#" onclick="doSearch();">查询</a>
        <table id="tt" class="easyui-treegrid">
            <thead>
                <tr>
                    <th data-options="fixed:false,field:'wfwName' ,width:200,halign:'center',align:'left'">化学品名称</th>
                </tr>
            </thead>
        </table>
</body>
</html>

  • 写回答

4条回答 默认 最新

  • x-av 2017-05-08 06:53
    关注

    没有任何的js错误 在ashx页面顶部设断点 直接没反应,

    评论

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler