UNPKG
weex-eros-template
Version:
latest (1.0.1)
1.0.1
本木前端 weex 集成方案
weex-eros-template
/
template
/
fe
/
src
/
js
/
service
/
bus.js
20 lines
(19 loc)
•
345 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
new
Vue
({
template
:
'<div class="wrap"></div>'
,
data
(
) {
return
{
// session
count
:
0
} },
methods
: {
bindEvent
(
) {
this
.
$bus
.
on
(
"to.bus.add"
,
resData
=>
{
this
.
count
++ }) } },
mounted
(
) {
this
.
bindEvent
() } });