Update index_m.html

This commit is contained in:
钟进 2018-09-26 10:14:05 +08:00
parent 58f7a50887
commit 200133ebe8

View File

@ -28,6 +28,41 @@
<!-- you have to define 2 functions in the global scope: -->
<script type="text/javascript">
var typeItemsLen = {
'uint8be': 1,
'uint8le': 1,
'int8be': 1,
'int8le': 1,
'uint16be': 1,
'uint16le': 1,
'int16be': 1,
'int16le': 1,
'int16be1': 1,
'int16le1': 1,
'uint32be': 2,
'uint32le': 2,
'uint32sw': 2,
'uint32sb': 2,
'int32be': 2,
'int32le': 2,
'int32sw': 2,
'int32sb': 2,
'uint64be': 4,
'uint64le': 4,
'int64be': 4,
'int64le': 4,
'floatbe': 2,
'floatle': 2,
'floatsw': 2,
'floatsb': 2,
'doublebe': 4,
'doublele': 4,
'string': 0,
'stringle': 0,
'ieee754': 2
};
function switchOneType(data, id) {
/*
var isDirect = $('#modbus_directAddresses').prop('checked');