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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号
    • ¥50 安装pyaudiokits失败
    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能