无用注释

This commit is contained in:
gexinzhineng/gxzn27 2023-01-30 10:30:08 +08:00
parent d6a4dc7d11
commit 00a93ab9bf

View File

@ -241,7 +241,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable'
// json // json
// import xml2js from 'xml-js' // import xml2js from 'xml-js'
import xml2js from 'fast-xml-parser' import xml2js from 'fast-xml-parser'
import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' // import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml'
// //
// import hljs from 'highlight.js/lib/highlight' // import hljs from 'highlight.js/lib/highlight'
// import 'highlight.js/styles/github-gist.css' // import 'highlight.js/styles/github-gist.css'
@ -636,11 +636,11 @@ const previewProcessJson = () => {
bpmnModeler.saveXML({ format: true }).then(({ xml }) => { bpmnModeler.saveXML({ format: true }).then(({ xml }) => {
console.log(xml, 'xml') console.log(xml, 'xml')
const rootNode = parseXmlString(xml) // const rootNode = parseXmlString(xml)
console.log(rootNode, 'rootNoderootNode') // console.log(rootNode, 'rootNoderootNode')
const rootNodes = new XmlNode(XmlNodeType.Root) // const rootNodes = new XmlNode(XmlNodeType.Root)
rootNodes.toJsObject() // rootNodes.toJsObject()
console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') // console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;')
const parser = new xml2js.XMLParser() const parser = new xml2js.XMLParser()
let jObj = parser.parse(xml) let jObj = parser.parse(xml)