摘要: mime中间件Demo,里面用到的有1.path模块 //引入模块var path=require('path');2.extname方法 //获取文件的扩展名var extname=path.extname(realPath)var path=require('path'); mime={ ... 阅读全文
posted @ 2015-06-18 14:26 Rain-Heart 阅读(187) 评论(0) 推荐(0) 编辑
摘要: var phoneWidth = parseInt(window.screen.width);var phoneScale = phoneWidth / 640;var ua = navigator.userAgent;if (/Android (\d+\.\d+)/.test(ua)) { ... 阅读全文
posted @ 2015-06-18 09:52 Rain-Heart 阅读(355) 评论(0) 推荐(0) 编辑