hong34210 2016-04-14 03:48 采纳率: 97%
浏览 1409

JqGrid无法显示,不进入ashx

把JqGrid写到js里面,前面有一块代码也调用了这个js,可以显示纪录,也可以进入HistoryService.ashx里面,断点可以停,但是另外一个调用的时候,不进入HistoryService.ashx,断点不停。请问有人知道是怎么回事吗?

<div style="position:absolute; z-index:9999;"><table  align="left" cellpadding="0" cellspacing="0" border="0"><tr> <td>    <div id="jqgrid" style="border: solid 0px red; text-align: center; width: 920px; "> <table id="list1">  </table> <div id="pager1">  </div> </div>  </td> </tr>   </table></div><iframe style="position:absolute; width:100%; height:100%;z-index:1;"></iframe>
 function GetResult() {
js:
    $("#list1").GridUnload();

    var StationID = $("#hf_BusinessStation").val();
    var ExitTime = $("#hf_BusinessTime").val();
    var VehicleLicense = $("#hf_VehicleLicense").val();

    jQuery("#list1").jqGrid({
        url: '../HistoryService.ashx?StationID=' + StationID + "&ExitTime=" + ExitTime + "&VehicleLicense=" + VehicleLicense + "&random=" + new Date(),
        datatype: "json",
        colNames: ['类型', '出时间', '出车道', '入口站', '入口时间', '入车道', '过江通道', '卡号', '车型', '金额', "支付", "事件"],
        colModel: [

                        { name: 'LaneTypeName', index: 'LaneTypeName', width: 40, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'ExitTime', index: 'ExitTime', width: 150, align: 'center', hidden: false, editable: true, editoption: { readonly: true} },
                        { name: 'ExitLane', index: 'ExitLane', width: 50, align: 'center', hidden: false, editable: true, editoption: { readonly: true} },
                        { name: 'EntryStation', index: 'EntryStation', width: 80, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'EntryTime', index: 'EntryTime', width: 150, align: 'center', hidden: false, editable: false, editoption: { readonly: true} },
                        { name: 'EntryLane', index: 'EntryLane', width: 50, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'ComputeStation', index: 'ComputeStation', width: 60, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'CardID', index: 'CardID', width: 100, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'VehicleClassName', index: 'VehicleClassName', width: 40, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'TotalToll', index: 'TotalToll', width: 60, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'PayMethodName', index: 'PayMethodName', width: 160, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'InputTypeName', index: 'InputTypeName', width: 100, align: 'center', editable: false, editoption: { readonly: true} }
                    ],
        rowNum: 12,
        rowList: [10, 20, 30],
        pager: '#pager1',
        sortname: 'ExitTime',
        viewrecords: true,
        sortorder: "desc",
        height: "360",
        width: "920",
        shrinkToFit: false,
        autoScroll: false


        //loadonce: true
    });

}
  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料