Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
3428b6b5
Commit
3428b6b5
authored
Dec 13, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共组件xml文本格式化获取<tdfmt>标签中的内容,c-input-xml标签修改
parent
098c981c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
InputXml.vue
src/components/InputXml.vue
+2
-1
No files found.
src/components/InputXml.vue
View file @
3428b6b5
...
...
@@ -67,7 +67,8 @@ export default {
let
strs
=
rows
.
length
>
0
?
rows
[
0
]
:
""
;
if
(
strs
.
startsWith
(
"<?xml"
))
{
this
.
isXml
=
true
;
var
pattern
=
/<tdfmt
\s[^
>
]
*>
(
.*
)
<
\/
tdfmt>/
;
// .点符号匹配除换行符\n以外的任意字符,相匹配包括换行符在内的任意字符,可以用[\s\S]*
var
pattern
=
/<tdfmt
\s[^
>
]
*>
([\s\S]
*
)
<
\/
tdfmt>/
;
var
temp
=
pattern
.
exec
(
strs
);
if
(
temp
!=
null
)
{
strs
=
temp
[
1
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment