- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 用HTML5轻松实现图片预览
在网页中实现图片上传功能,当用户选择了图片文件后,想在页面中即时预览该图片,这个简单的需求在很久很久以前可以实现,后来因为安全性的问题被禁止直接访问本地文件了,所以又在很长很长一段时间里,想通过HTML直接预览用户选择的图片变得不可能,自从有了HTML5,这个功能又回来了,通过FileReader可以轻松的实现这个功能。 只要在文件表单元素中监听 onchange 事件,然后通过FileRead
2012-11-26 02:22:30 31013 5
Express - node web framework
express 的官方文档
Getting started
With node installed (download), get your first application started by creating a directory somewhere on your machine:
$ mkdir hello-world
In this same directory you'll be defining the application "package", which are no different than any other node package. You'll need a package.json file in the directory, with express defined as a dependency. You may use npm info express version to fetch the latest version, it's preferred that you do this instead of "3.x" below to prevent any future surprises.
{
"name": "hello-world",
"description": "hello world test app",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.x"
}
}
2012-12-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人