0.2.8 • Published 7 years ago
ucar-weex v0.2.8
ucar-weex
weex 的增强框架
介绍
- Utils: Utils
- Router: 路由部分 push() ,pop()
- Bridge: postGlobalEvent() ,sendScheme
开始
// 引入 ucar-weex
import uweex from 'weex-ext'
//常用utils
uweex.utils.isString('xx');
//发送全局事件
uweex.bridge.postGlobalEvent('test', {key: '你好'});
//接收全局事件
uweex.bridge.addEventListener('test',(e)=>{
})
//注销全局事件
uweex.bridge.removeEventListener('test')
//打开新的页面
let options = {
url: item.page,
param: {
'KEY_INDEX': 'VALUE_INDEX'
},
navBar:{
backgroundColor: '#000000',
}
};
uweex.router.push(options,() => {
})
//关闭当前页面
uweex.router.pop()
//打开指定页面
uweex.router.popTo({index:-1,tagCode:"pageb",param:{test:'testB'}},() => {} );
0.2.8
7 years ago
0.2.7
7 years ago
0.2.6
7 years ago
0.2.5
7 years ago
0.2.4
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago