摘要: 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 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 使用方法: 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 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 提取身份证号 林芳德 30233212956620120x 男 26岁 李云飞 302332129566201201 女 30岁 龚丽芬 302332129566201202 男 28岁 王晋珺 30233212956620120X 男 20岁 阅读全文
posted @ 2016-07-12 16:52 sunbey80 阅读(4191) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 123 阅读全文
posted @ 2016-06-23 17:14 sunbey80 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 简单的安装方法: 从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码: Sublime Text 3: Sublime Text 2 阅读全文
posted @ 2016-06-21 14:31 sunbey80 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-24 19:48 sunbey80 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: hello.js hello_html.js views/index.html ==用express起一个server,访问静态资源 阅读全文
posted @ 2016-05-17 17:19 sunbey80 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 微信浏览器禁止页面下拉查看网址(不影响页面内部scroll) 阅读全文
posted @ 2016-04-19 17:05 sunbey80 阅读(3686) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //第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 阅读(236) 评论(0) 推荐(0) 编辑
摘要: canvas 阅读全文
posted @ 2016-03-15 22:40 sunbey80 阅读(435) 评论(0) 推荐(0) 编辑
摘要:   阅读全文
posted @ 2016-03-15 17:13 sunbey80 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 1 关键字breakcasecatchcontinuedefaultdeletedoelsefinallyforfunctionifininstanceofnewreturnswitchthisthrowtrytypeofvarvoidwhilewith 2 保留字abstractbooleanby 阅读全文
posted @ 2016-03-10 15:37 sunbey80 阅读(159) 评论(0) 推荐(0) 编辑
摘要: // 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 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 推荐使用JSON.parse() 低版本浏览器(IE6/7)不支持此方法,可以通过网上下载json2.js,引入到文件中,此文件通过判断浏览器是否支持JSON.parse()方法,如果不支持,文件中编写了JSON.parse()方法,同样可调用。 阅读全文
posted @ 2016-03-09 21:49 sunbey80 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 设置本地账号 生成秘钥 忽略文件 q:出现无法提交代码 a:解决方案: q:合并后[git merge origin/master]怎么撤销 a:解决方案: q:撤出暂存区 a:解决方案: q:还原文件 阅读全文
posted @ 2016-03-08 16:22 sunbey80 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1.placeholder默认样式修改 知识点:单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素。 css伪类:CSS 伪类用于向某些选择器添加特殊的效果。 css伪元素:CSS 伪元素用于向某些选择器设置特殊效果。 伪元素由双冒号和伪元素名称组成。双冒号是在当前规范中引入的,用于区分 阅读全文
posted @ 2016-03-08 12:58 sunbey80 阅读(962) 评论(0) 推荐(0) 编辑
摘要: @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 阅读(406) 评论(0) 推荐(0) 编辑