狩猎在视野中显示的神秘角色

时间:2015-01-08 15:22:15

标签: javascript c# html razor

我有一个巨大的视图,大约1500行,其上有多个表,通过SQL填充。我有一个问题,即我的观点中出现了一个随机的p字符。我查看了源代码,检查了元素,并在下面的块中显示了一个被很多空格包围的p

检查元素/来源的结果

<h1 style="text-align: center; margin-bottom: -8px;">
"Header Extension Record - Type 3"
"


p
       "
"

p
       "
</h1>

我的代码中的相关块

</div>         
<h1 style ="text-align:center; margin-bottom: -8px;">Header Extension Record - Type 3</h1>
<table id="table3" class="tablesorter">
<thead>
<tr>

有问题的表标题的Tablesorter代码:

<script>
            $(document).ready(function () {
                // define pager options
                var pagerOptions = {
                    // target the pager markup - see the HTML block below
                    container: $(".pager3"), size: 5,
                    // output string - default is '{page}/{totalPages}'; possible variables: {page}, {totalPages}, {startRow}, {endRow} and {totalRows}
                    output: '{startRow} - {endRow} / {filteredRows} ({totalRows})',
                    // if true, the table will remain the same height no matter how many records are displayed. The space is made up by an empty
                    // table row set to a height to compensate; default is false
                    fixedHeight: true,
                    // remove rows from the table to speed up the sort of large tables.
                    // setting this to false, only hides the non-visible rows; needed if you plan to add/remove rows with the pager enabled.
                    removeRows: false,
                    // go to page selector - select dropdown that sets the current page
                    cssGoto: '.gotoPage3'
                };

                $("#table3")
               .tablesorter({
                   theme: 'blue',
                   dateFormat: "mmddyy",
                   widgets: ['zebra', 'filter', 'pager', 'columns'],
                   widgetOptions: {
                       // output default: '{page}/{totalPages}'
                       // possible variables: {page}, {totalPages}, {filteredPages}, {startRow}, {endRow}, {filteredRows} and {totalRows}
                       pager_output: '{startRow} - {endRow} / {filteredRows} ({totalRows})', // '{page}/{totalPages}'
                       pager_removeRows: false,

                       // include child row content while filtering, if true
                       filter_childRows: true,
                       // class name applied to filter row and each input
                       filter_cssFilter: 'tablesorter-filter',
                       // search from beginning
                       filter_startsWith: false,
                       // Set this option to false to make the searches case sensitive 
                       filter_ignoreCase: true
                   }
               })
               .tablesorterPager(pagerOptions);
            });
</script>

更新:我已经完全确定该问题不是由tablesorter脚本引起的。我删除了所有的tablesorter脚本,直接从没有这个p字符问题的视图中复制了脚本,但它仍然存在问题。

0 个答案:

没有答案