我有这种格式的大数据,我想从中提取一些信息:
[**] [122:1:0] (portscan) TCP Portscan [**]
[Priority: 3]
04/13-07:54:00.585009 192.168.2.136 -> 192.168.1.14
PROTO:255 TTL:0 TOS:0x0 ID:62399 IpLen:20 DgmLen:165 DF
我应该如何在javascript中阅读此文本文件?
答案 0 :(得分:0)
好这是我提取信息的解决方案
<table id="mytable" class="table table-striped no-footer dt-responsive" data-order='[[ 4, "asc" ]]'>
<thead>
<tr role="row">
<th>One</th>
<th>Two</th>
<th>Threee</th>
<th>Four</th>
<th>Five</th>
<th data-orderable="false"> </th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img class="img-thumbnail" src="(picture_url)" alt="" />
<span>Some Small text</span>
</td>
<td>
Value
</td>
<td>Value</td>
<td><i class="fa fa-circle"></i> Value</td>
<td data-sort="(sort value)"><span class="label label-info">Value</span></td>
<td>
<a href="(action_url)" title="Title" type="button"
class="btn btn-xs btn-success"><span><i class="fa fa-view"></i> Details</span></a>
</td>
</tr>
</tbody>
</table>
结果如下:
PROTO:255
TTL:0
TOS:0x0
ID:62399
IpLen:20
DgmLen:165