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
46da667fe37f56ef38624f7a513958616f9dedf4
1 parent
0a465a5d
add yoho page
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
public/js/yoho-page.js
public/js/yoho-page.js
0 → 100644
View file @
46da667
import
app
from
'./yoho-app'
;
import
$
from
'yoho-jquery'
;
import
qs
from
'yoho-qs'
;
class
Page
{
constructor
()
{
this
.
app
=
app
;
this
.
qs
=
qs
;
this
.
$event
=
$
(
document
);
}
on
(
name
,
...
cb
)
{
name
=
`
yohoevent
.
$
{
name
}
`
;
this
.
event
.
on
(
name
,
...
cb
);
}
emit
(
name
,
...
data
)
{
this
.
$event
.
trigger
(
name
,
...
data
);
}
ajax
(
options
=
{})
{
return
Promise
.
resolve
(
$
.
ajax
(
options
));
}
}
export
default
Page
;
...
...
Please
register
or
login
to post a comment