Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
8 years ago
Commit
4761f5bcfdb739c7e49831c2d20ac29e14578432
1 parent
707a75c1
event-bug-fixed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
public/js/yoho-page.js
public/js/yoho-page.js
View file @
4761f5b
...
...
@@ -10,9 +10,10 @@ class Page {
}
on
(
name
,
...
cb
)
{
name
=
`
yohoevent
.
$
{
name
}
`
;
this
.
event
.
on
(
name
,
...
cb
);
this
.
$
event
.
on
(
name
,
...
cb
);
}
emit
(
name
,
...
data
)
{
name
=
`
yohoevent
.
$
{
name
}
`
;
this
.
$event
.
trigger
(
name
,
...
data
);
}
ajax
(
options
=
{})
{
...
...
Please
register
or
login
to post a comment