会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sunbey80
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2016年7月26日
node http 服务
摘要: var http = require("http") http.createServer(function(req,res){ res.writeHead(200,{"Content-Type":"text/html"}) res.write("NodeJs") res.end() }).listen(5858)
阅读全文
posted @ 2016-07-26 14:33 sunbey80
阅读(175)
评论(0)
推荐(0)
2016年7月22日
mongodb 连接和操作
摘要: 使用方法: 1.安装mongodb 2.配置环境变量 mac下: 3.新建data\db文件夹 4.运行mongod -dbpath "C:\data"指向文件夹 5.新开cmd,运行mongo操作数据库 操作: show dbs 注:显示数据库 use 数据库名 注:操作数据库 show coll
阅读全文
posted @ 2016-07-22 14:24 sunbey80
阅读(355)
评论(0)
推荐(0)
2016年7月12日
js从字符串中提取身份证号,连续18位数字
摘要: 提取身份证号 林芳德 30233212956620120x 男 26岁 李云飞 302332129566201201 女 30岁 龚丽芬 302332129566201202 男 28岁 王晋珺 30233212956620120X 男 20岁
阅读全文
posted @ 2016-07-12 16:52 sunbey80
阅读(4335)
评论(0)
推荐(0)
2016年6月24日
node body-parser
摘要: var express = require('express'); var app = express(); var bodyParser = require('body-parser'); // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: false })) // parse...
阅读全文
posted @ 2016-06-24 14:56 sunbey80
阅读(212)
评论(0)
推荐(0)
2016年6月23日
jquery mousewheel
摘要: 123
阅读全文
posted @ 2016-06-23 17:14 sunbey80
阅读(360)
评论(0)
推荐(0)
2016年6月21日
Sublime text 2/3 中 Package Control 的安装与使用方法
摘要: 简单的安装方法: 从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码: Sublime Text 3: Sublime Text 2
阅读全文
posted @ 2016-06-21 14:31 sunbey80
阅读(233)
评论(0)
推荐(0)
2016年5月24日
Js判断客户端是iphone还是安卓
摘要:
阅读全文
posted @ 2016-05-24 19:48 sunbey80
阅读(1071)
评论(0)
推荐(0)
2016年5月17日
node入门 express ejs
摘要: hello.js hello_html.js views/index.html ==用express起一个server,访问静态资源
阅读全文
posted @ 2016-05-17 17:19 sunbey80
阅读(238)
评论(0)
推荐(0)
2016年4月19日
去除手机端触摸滑动事件ontouchmove
摘要: 微信浏览器禁止页面下拉查看网址(不影响页面内部scroll)
阅读全文
posted @ 2016-04-19 17:05 sunbey80
阅读(3722)
评论(0)
推荐(0)
canvas绘制
摘要: window.onload = function(){ var can1 = document.getElementById("can1"); var ctx = can1.getContext("2d"); var pic = new Image(); pic.src = "images/jianyu_bg.jpg"; ...
阅读全文
posted @ 2016-04-19 16:08 sunbey80
阅读(126)
评论(0)
推荐(0)
2016年3月23日
JS 中面向对象的5种写法
摘要: //第1种写法 function Circle(r) { this.r = r; } Circle.PI = 3.14159; Circle.prototype.area = function() { return Circle.PI * this.r * this.r; } var c = new Circle(1.0); alert(c.area()); //第...
阅读全文
posted @ 2016-03-23 12:55 sunbey80
阅读(243)
评论(0)
推荐(0)
2016年3月15日
canvas 3D运动球效果 多球
摘要: canvas
阅读全文
posted @ 2016-03-15 22:40 sunbey80
阅读(463)
评论(0)
推荐(0)
canvas 3D运动球效果
摘要:
阅读全文
posted @ 2016-03-15 17:13 sunbey80
阅读(728)
评论(0)
推荐(0)
2016年3月10日
javascript关键字和保留字
摘要: 1 关键字breakcasecatchcontinuedefaultdeletedoelsefinallyforfunctionifininstanceofnewreturnswitchthisthrowtrytypeofvarvoidwhilewith 2 保留字abstractbooleanby
阅读全文
posted @ 2016-03-10 15:37 sunbey80
阅读(169)
评论(0)
推荐(0)
个人js类库mycool
摘要: // JavaScript Document Sunbye 1.0 //getElementById //function start var $=function(_id){return document.getElementById(_id)}; //function end //functio
阅读全文
posted @ 2016-03-10 12:47 sunbey80
阅读(328)
评论(0)
推荐(0)
去除手机端a标签等按下去背景色
摘要: a,button,input,textarea,label,i,em{/*highlight*/ -webkit-tap-highlight-color: rgba(255,0,0,0); border: 0; -webkit-appearance: none; }
阅读全文
posted @ 2016-03-10 12:00 sunbey80
阅读(255)
评论(0)
推荐(0)
2016年3月9日
json解析不推荐使用eval
摘要: 推荐使用JSON.parse() 低版本浏览器(IE6/7)不支持此方法,可以通过网上下载json2.js,引入到文件中,此文件通过判断浏览器是否支持JSON.parse()方法,如果不支持,文件中编写了JSON.parse()方法,同样可调用。
阅读全文
posted @ 2016-03-09 21:49 sunbey80
阅读(274)
评论(0)
推荐(0)
2016年3月8日
Git 使用命令
摘要: 设置本地账号 生成秘钥 忽略文件 q:出现无法提交代码 a:解决方案: q:合并后[git merge origin/master]怎么撤销 a:解决方案: q:撤出暂存区 a:解决方案: q:还原文件
阅读全文
posted @ 2016-03-08 16:22 sunbey80
阅读(207)
评论(0)
推荐(0)
input的默认样式修改
摘要: 1.placeholder默认样式修改 知识点:单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素。 css伪类:CSS 伪类用于向某些选择器添加特殊的效果。 css伪元素:CSS 伪元素用于向某些选择器设置特殊效果。 伪元素由双冒号和伪元素名称组成。双冒号是在当前规范中引入的,用于区分
阅读全文
posted @ 2016-03-08 12:58 sunbey80
阅读(980)
评论(0)
推荐(0)
2016年3月7日
css自适应代码-iphone端
摘要: @media (device-height:480px) and (-webkit-min-device-pixel-ratio:2) {/* 兼容iphone4/4s */} @media (device-height:568px) and (-webkit-min-device-pixel-ra
阅读全文
posted @ 2016-03-07 17:07 sunbey80
阅读(425)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页