02 2016 档案
JSON
摘要:node-jsonfilenpm install json-diffdeepmergesearchjs 阅读全文
posted @ 2016-02-29 11:12 jayruan 阅读(111) 评论(0) 推荐(0)
clearfix
摘要:过渡放在原:transiton:2s; 块无素:block,inline inline-block1,占一行,有宽,有高内元素:2,无宽高,内容撑开宽高。不支持上下margin.代码换行补解析。3, 一行,有宽,有高。不设宽度,要内容撑开。float:浮动元素.clearfix{*zoom:1;}. 阅读全文
posted @ 2016-02-29 06:33 jayruan 阅读(213) 评论(0) 推荐(0)
git
摘要:git checkout -b iss53 == git branch iss53 && git checkout iss53 git merge hotfixgit branch -d hotfix 查看所有分支:git branch -a 切换分支 : git checkout master / 阅读全文
posted @ 2016-02-28 08:25 jayruan 阅读(144) 评论(0) 推荐(0)
MONGODB 查询
摘要:1,mongoDB 取模运算:db.person.find({index:{$mod:[5,1]}})db.person.find({index:{$not:{$mod:[5,1]}}})2,name存在db.person.find({name:{$exists:true}})3,index不存在 阅读全文
posted @ 2016-02-28 04:33 jayruan 阅读(206) 评论(0) 推荐(0)
inoic是什么
摘要:本篇只侧重框架提供的功能和能力的研究,请关注后续实际部署使用体验。 一、inoic是什么? inoic是一个可以使用Web技术以hybird方式开发移动app的前端开源框架。 二、inoic框架特点 1. 利用web技术开发移动app。 ionic提供了一套HTML、CSS、JS的类库。我们可以使用 阅读全文
posted @ 2016-02-28 04:21 jayruan 阅读(538) 评论(0) 推荐(0)
localStorage
摘要:length:唯一的属性,只读,用来获取storage内的键值对数量。 key:根据index获取storage的键名 getItem:根据key获取storage内的对应value setItem:为storage内添加键值对 removeItem:根据键名,删除键值对 clear:清空stora 阅读全文
posted @ 2016-02-27 11:39 jayruan 阅读(494) 评论(0) 推荐(0)
node开发 npm install -g express-generator@4
摘要:Node forever : 1,forever start --uid test start app.js 2,forever start --uid test start -a app.js 3,forever list 4,forever stop test node 开发流程1,expres 阅读全文
posted @ 2016-02-26 02:31 jayruan 阅读(537) 评论(0) 推荐(0)
CSS 巧用 :before和:after
摘要:http://www.cnblogs.com/ys-ys/p/5092760.html http://tympanus.net/Development/HoverEffectIdeas/ 前几天的晚上较全面的去看了下css的一些文档和资料,大部分的样式运用都没什么大问题了,只是有些许较陌生,但是也知 阅读全文
posted @ 2016-02-23 01:27 jayruan 阅读(1931) 评论(0) 推荐(0)
正则
摘要:1. Null是个对象 JavaScript众多类型中有个Null类型,它有个唯一的值null, 即它的字面量,定义为完全没有任何意义的值。其表现得像个对象,如下检测代码: alert(typeof null); //弹出 'object' 如下截图: 尽管typeof值显示是"object",但n 阅读全文
posted @ 2016-02-23 01:03 jayruan 阅读(208) 评论(0) 推荐(0)
程序员在页面友好性上常犯的5种错误以及改正方法
摘要:我是一个性情乖戾的Web用户,但我想这也帮助促使我成为了一名优秀的Web开发人员。当我看到一个网站上有让人不爽的设计时就会非常的恼怒,一些很简单的东西为什么做不好?下面是5种常见的可用性方面的错误,以及如何纠正这些问题的方法。给自己方便,也与人方便,确保自己不要犯这样的错误。 使用表达submit事 阅读全文
posted @ 2016-02-23 00:57 jayruan 阅读(272) 评论(0) 推荐(0)
animation
摘要:animation-name xxxanimation-duration 8sanimation-timing-function linear,ease,ease-in,ease-out,ease-in-out,cubic-bezier(n,n,n,n) 0到1animation-delay 0sa 阅读全文
posted @ 2016-02-19 07:57 jayruan 阅读(394) 评论(0) 推荐(0)
Zone.js
摘要:https://github.com/angular/zone.js/ Zone.js 阅读全文
posted @ 2016-02-18 02:33 jayruan 阅读(254) 评论(0) 推荐(0)
php unicode
摘要:在很多场合能看到unicode编码过的文字,如“\u6d3b\u52a8\u63a5\u53e3”,虽然程序会认识,但人眼无法阅读,很不方便,网络上很多人写了很多的转换函数,但是一个比一个臃肿,终于发现用一行PHP代码解决的方案: $str = '{"success":true,"msg":"\u6 阅读全文
posted @ 2016-02-14 00:26 jayruan 阅读(171) 评论(0) 推荐(0)
都是以父元素的width为参照物的
摘要:本文依赖于一个基础却又容易混淆的css知识点:当margin/padding取形式为百分比的值时,无论是left/right,还是top/bottom,都是以父元素的width为参照物的!也许你会说,left/right以父元素的width为参照物好理解,但是top/bottom为什么也是以父元素的 阅读全文
posted @ 2016-02-13 11:26 jayruan 阅读(238) 评论(0) 推荐(0)
wechat
摘要:https://forum.xxx.com/home.php?view=2015&from=timeline&isappinstalled=0 阅读全文
posted @ 2016-02-13 02:09 jayruan 阅读(120) 评论(0) 推荐(0)
GET /hello/fred/0926xxx572
摘要:GET /hello/fred/0926xxx572 app.get('/hello/:name/:tel', function(req, res) { console.log(req.params.name); console.log(req.params.tel);});req.params.x 阅读全文
posted @ 2016-02-12 12:13 jayruan 阅读(219) 评论(0) 推荐(0)
ng-repeat的group
摘要:http://blog.csdn.net/violet_day/article/details/17023219 一、obj包含 [html] view plain copy <!doctype html> <html ng-app> <head> <script src="lib/angular/ 阅读全文
posted @ 2016-02-11 04:06 jayruan 阅读(737) 评论(0) 推荐(0)
NodeJs编写小爬虫
摘要:一,爬虫及Robots协议 爬虫,是一种自动获取网页内容的程序。是搜索引擎的重要组成部分,因此搜索引擎优化很大程度上就是针对爬虫而做出的优化。robots.txt是一个文本文件,robots是一个协议,而不是一个命令。robots.txt是爬虫要查看的第一个文件。robots.txt文件告诉爬虫在服 阅读全文
posted @ 2016-02-09 01:03 jayruan 阅读(5309) 评论(2) 推荐(0)
meta
摘要:<meta name=”viewport” content=”width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;” /> <meta name=”format-detection” content=”t 阅读全文
posted @ 2016-02-09 01:01 jayruan 阅读(136) 评论(0) 推荐(0)
appjs desktop2
摘要:var express = require('express');var path = require('path');var favicon = require('serve-favicon');var logger = require('morgan');var cookieParser = r 阅读全文
posted @ 2016-02-07 11:29 jayruan 阅读(236) 评论(0) 推荐(0)
appjs desktop
摘要:/* author: daimajia name: appjs Express example email: daimajia@gmail.com any question feel free to email me :) */ var appjs = module.exports = requir 阅读全文
posted @ 2016-02-07 11:28 jayruan 阅读(312) 评论(0) 推荐(0)
soap
摘要:sudo apt-get update apt-get install php-soapphp-config --configure-options --enable-soap php -i | grep extension_dir extension='/usr/lib/php/modules/s 阅读全文
posted @ 2016-02-06 03:02 jayruan 阅读(126) 评论(0) 推荐(0)
ionic build --release android
摘要:ionic bulid android ionic build --release android keytool -genkey -v -keystore demo.keystore -alias demo.keystore -keyalg RSA -validity 20000 jarsign 阅读全文
posted @ 2016-02-03 06:10 jayruan 阅读(751) 评论(0) 推荐(0)
redis
摘要:https://github.com/NodeRedis/node_redis/tree/master/examples demo 存redisClient.hset("hash key", "hashtest 1", "some value");redisClient.hmset("hash ke 阅读全文
posted @ 2016-02-03 06:09 jayruan 阅读(114) 评论(0) 推荐(0)
redis 命令
摘要:三、常用命令 1)连接操作命令 quit:关闭连接(connection) auth:简单密码认证 help cmd: 查看cmd帮助,例如:help quit 2)持久化 save:将数据同步保存到磁盘 bgsave:将数据异步保存到磁盘 lastsave:返回上次成功将数据保存到磁盘的Unix时 阅读全文
posted @ 2016-02-02 06:11 jayruan 阅读(128) 评论(0) 推荐(0)
继续node爬虫 — 百行代码自制自动AC机器人日解千题攻占HDOJ
摘要:http://www.cnblogs.com/zichi/p/5173917.html 前言 不说话,先猛戳 Ranklist 看我排名。 这是用 node 自动刷题大概半天的 "战绩",本文就来为大家简单讲解下如何用 node 做一个 "自动AC机"。 过程 先来扯扯 oj(online judg 阅读全文
posted @ 2016-02-01 07:32 jayruan 阅读(315) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示