明树Git Lab

Commit d7334222 authored by zfp1's avatar zfp1

updat

parent 91e776a8
......@@ -90,9 +90,9 @@ function genInsertObj(gbkString, deviceNumber) {
if (element.startsWith('{')) {
console.log(1, "--")
if (!element.endsWith('}')) {
console.log(2, "--")
let nStr = String(element).substring(0, element.length - 2);
console.log(3, "--", element, nStr, "======", element === nStr)
console.log(2, "--", String(element))
let nStr = String(element).slice(0, -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