![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
weex
程序媛-静儿
学无止境
展开
-
Weex的安装和weex playground使用
weex playground下载地址:https://weex.apache.org/tools/playground.html在手机端安装weex playground App,然后扫描项目网页中的二维码搭建Weex开发环境1.安装依赖nodejs2.npm install -g weex-toolkit3.Weex init project 项目根目录下:npm...原创 2019-03-25 21:39:17 · 2390 阅读 · 0 评论 -
Weex特殊样式(特别注意)
一、适配和缩略1.Weex对于长度值目前只支持像素值,不支持相对单位em,rem,pt,%;适配以750px标准2.设定边框,border目前不支持类似这样border:1px solid #ddd;的组合写法。3.设定背景色,background目前不支持类似这样background:red的写法,需要修改为具体的background-color:red;二、定位1.Weex...原创 2019-03-25 22:06:42 · 2044 阅读 · 0 评论 -
Weex通用组件和内建模块
项目调试方法:weex debug 调试bug一、Weex内建组件<a>组件:Weex中a组件定义了指向weex页面打包后的一个js地址。 hrefstring. 待跳转的页面 URL,待跳转页面需要是一个 Weex 页面,否则会是一个未定义行为。 组件中无法添加文本,需要在其中加上text组件才能添加文本。 此组件支持除了自己外的所有Weex组件作为子组件...原创 2019-04-01 22:19:20 · 442 阅读 · 0 评论 -
Weex购物车案例,下拉刷新功,数据展示功能,路由功能
项目github地址:https://github.com/ailan0601/weex/tree/dev项目结构入口文件app.js:/* weex initialized here, please do not move this line *///导入路由文件// 导入一个跟组件import foo from '@/router.vue'const { rout...原创 2019-04-08 23:57:59 · 649 阅读 · 0 评论 -
weex请求方法stream 的封装
简单版本:mixins:index.jslet stream = weex.requireModule('stream');export default { methods: { GET (api, callback) { return stream.fetch({ method: 'GET', ...原创 2019-04-18 20:42:52 · 744 阅读 · 0 评论