| | |
| | | instance.unusedBytes = unusedBytes; |
| | | return (T) instance; |
| | | } |
| | | |
| | | // 字节数组 ===>> 转为十六进制字符串 |
| | | public static String toHex(byte[] bytes) { |
| | | StringBuilder buf = new StringBuilder(bytes.length * 2); |
| | | for(byte b : bytes) { // 使用String的format方法进行转换 |
| | |
| | | } |
| | | return bbt; |
| | | } |
| | | |
| | | |
| | | public static class TestMessage { |
| | | public @size(1) byte begin = 0x7e;//起始符 |
| | |
| | | $('.site').on('click', function () { |
| | | var id = this.id.split("-")[1]; |
| | | layer.open({ |
| | | title: id + "站点信息详情", |
| | | title: id + " 站点信息详情", |
| | | closeBtn: 0, |
| | | skin: 'layui-layer-lan', |
| | | offset: '180px', |