Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陶雨
9 years ago
Commit
54bb406b43c5e7d8c0b4e307828cb39b76361e59
1 parent
05835e1a
template2正则修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
client/js/common/util.js
client/js/common/util.js
View file @
54bb406
...
...
@@ -137,7 +137,7 @@ var util={
var
trim
=
$1
.
replace
(
/^
\s
+|
\s
+$/
,
''
);
if
(
/^each/
.
test
(
trim
))
{
trim
=
trim
.
replace
(
/^each
\s
+
(
\w
+
)\s
+as
\s
+
(\w
+
)\s
+
(\w
+
)
/
,
'each\( $1,function($3,$2){'
);
trim
=
trim
.
replace
(
/^each
\s
+
(
[
A-Za-z0-9.
]
+
)\s
+as
\s
+
(\w
+
)\s
+
(\w
+
)
/
,
'each\( $1,function($3,$2){'
);
return
"[["
+
trim
+
"]]"
;
}
else
if
(
/^
\/
each/
.
test
(
trim
)){
...
...
Please
register
or
login
to post a comment