明树Git Lab

Commit 093d8831 authored by zfp1's avatar zfp1

update

parent 1dbff31f
......@@ -88,8 +88,11 @@ function genInsertObj(gbkString, deviceNumber) {
for (let index = 0; index < splitArr.length; index++) {
let element = splitArr[index];
if (element.startsWith('{')) {
console.log(1, "--")
if (!element.endsWith('}')) {
console.log(2, "--")
let nStr = element.substring(0, element.length - 2);
console.log(3, "--", nStr, "======")
arr.push(nStr)
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment