react native css样式
react native 布局 RN css 样式 react_native 在react native中使用的样式布局基本都是flex box的布局方式 作用在父容器: flexDirection //控制子元素的排列方式 --row:横向布局 --column:纵向布局 alignItems //控制子元素的对齐方式,(…
867 2017-02-21 去围观Nodejs 开发第一个 CLI(命令行界面) 程序
node.js dos界面 命令程序 什么是cli命令 类似于我们平时装win系统时,进入到一个dos界面让我们选择相应的操作,或者输入相应的光标之后安回车之后就开始执行操作。 类似于这样的就是cli命令。 //run.js var fs = require('fs'); var stdi…
824 2017-02-13 去围观async/await笔记
es7语法,主要作用让异步操作更简单,在Generator函数基础上优化得来 Generator 函数 var gen = function* () { var f1 = yield readFile('/etc/fstab'); var f2 = yield readFile('/etc/shells'); }; 调用: gen().next() gen().ne…
773 2017-02-08 去围观Node.js执行Unix shell命令
node shell 1,创建一个shell可执行程序,名称为hello (无扩展名) #!/usr/bin/env node console.log('hello world'); 2,赋予可执行权限 chmod 755 hello 3,创建package.json { "name": "hello", "bin": { "hello123": "hel…
752 2017-01-24 去围观基于vue.js在input输入框的金钱货币格式化
直接上代码: var vm= new Vue({ el: '#repeat', data: { value1:'' } }) vm.$watch('value1',function (newvalue,oldvalue) { newvalue_=(newvalue.indexOf('.00')>0)?newvalue.replace('.00' ,''):newvalue; //禁止ie8,9自动添加.00的小数…
1,257 2017-01-19 去围观