摘要: 1.小程序是基于webView的开发 2.小程序的服务器域名一定要支持https 3.单个小程序最多不能超过2MB,小程序可以分包,最多分4个包,所以说小长须最大不超过8MB 4.目录结构 app.js js逻辑代码 app.json 配置文件 app.wxss 样式文件 app.wxml 结构文件 阅读全文
posted @ 2018-12-13 23:11 静守己心,笑谈浮华 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1.yarn init -y 创建一个package.json文件 2.yarn add koa 安装koa 3.hello world 4.静态资源 yarn add koa-static 5.数据获取 yarn add bodyparse get方法和post方法 6.前端获取的数据类型 普通表 阅读全文
posted @ 2018-12-11 22:49 静守己心,笑谈浮华 阅读(851) 评论(0) 推荐(1) 编辑
摘要: 1.v-for具有比v-if更高的优先级 2.数组的变异方法 splice 3. 阅读全文
posted @ 2018-12-08 10:20 静守己心,笑谈浮华 阅读(167) 评论(0) 推荐(1) 编辑
摘要: 1.hello world 2.自定义部件 3.文字样式 4.shift+R 重新编译 r 刷新 5.MaterialApp界面组件 自定义部件分为无状态部件和有状态部件 6.const是在编译时运行的 final是在解释的时候运行的 7.列表视图 8.列表项目 阅读全文
posted @ 2018-12-05 22:54 静守己心,笑谈浮华 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1.回忆redux redux: action,store,reducer Component action的触发:一般通过手工去触发,或通过组件去派发 store对象:store对象是通过redux的createStore创建的,拿到store对象后,做dispatch,去派发一个action a 阅读全文
posted @ 2018-12-01 12:29 静守己心,笑谈浮华 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 1. 全局安装 yarn global add create-react-native-app 2.create-react-native-app cookbooks 创建一个项目 3.yarn add typescript tslink -D yarn add @types/react @type 阅读全文
posted @ 2018-11-29 21:28 静守己心,笑谈浮华 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1.安装 yarn global add typescript 2.编译 tsc 文件名(*ts) 3.接口初尝试 4.类型 string number 布尔型 数组 数组(泛型) tuple(元组) enum(枚举) any void 函数无返回值 5. ? 可选项 6.readOnly 只读属性 阅读全文
posted @ 2018-11-28 19:53 静守己心,笑谈浮华 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1.安装 cnpm i expo-cli -g 2.expo init rn-basic 创建一个新项目 3.项目启动 yarn start 4.基本组件 View(相当于div) Text(相当于span,p) StyleSheet(样式) Props State Style (小驼峰,不加引号, 阅读全文
posted @ 2018-11-27 21:27 静守己心,笑谈浮华 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-22 20:00 静守己心,笑谈浮华 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1.初步尝试 2. react-transition-group 安装 yarn add react-transition-group CSSTransition TransitionGroup TransitionGroup 阅读全文
posted @ 2018-11-18 22:21 静守己心,笑谈浮华 阅读(163) 评论(0) 推荐(0) 编辑