Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuhj
/
spd-pad
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1820c933
authored
2019-09-10 17:42:46 +0800
by
liuhejuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
扫码验收,去掉条形码前面的0
1 parent
c39f8841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
container/acceptance/index.html
container/acceptance/index.html
View file @
1820c93
...
...
@@ -79,6 +79,10 @@
console
.
log
(
r
+
"条形码读取的数据"
);
//返回二维码读取的数据
if
(
r
){
r
=
r
+
""
;
if
(
typeof
r
==
'string'
){
//去掉条形码前面的0
r
=
r
.
replace
(
/
\b(
0+
)
/gi
,
""
);
}
var
itemData
=
{
barcode
:
r
}
itemData
.
currentSelected
=
selectTabs
===
1
?
'left'
:
'right'
;
console
.
log
(
JSON
.
stringify
(
itemData
))
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment