上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 83 下一页
摘要: 移动端touch触屏滑动事件、滑动触屏事件监听! 一、触摸事件 ontouchstart、ontouchmove、ontouchend、ontouchcancel 目前移动端浏览器均支持这4个触摸事件,包括IE。由于触屏也支持MouseEvent,因此他们的顺序是需要注意的:touchstart → 阅读全文
posted @ 2017-04-15 17:44 winyh 阅读(10087) 评论(0) 推荐(0) 编辑
摘要: JS移动客户端--触屏滑动事件 移动端触屏滑动的效果其实就是图片轮播,在PC的页面上很好实现,绑定click和mouseover等事件来完成。但是在移动设备上,要实现这种轮播的效果,就需要用到核心的touch事件。处理touch事件能跟踪到屏幕滑动的每根手指。 以下是四种touch事件 touchs 阅读全文
posted @ 2017-04-15 17:24 winyh 阅读(60182) 评论(0) 推荐(3) 编辑
摘要: Vue-cli proxyTable 解决开发环境的跨域问题 这样我们在写url的时候,只用写成/list/1就可以代表api.xxxxxxxx.com/list/1.那么又是如何解决跨域问题的呢?其实在上面的'list'的参数里有一个changeOrigin参数,接收一个布尔值,如果设置为true 阅读全文
posted @ 2017-04-13 17:27 winyh 阅读(2437) 评论(2) 推荐(0) 编辑
摘要: 在创建Schma 时指定对应的collection var db_url = 'mongodb://localhost:27017/test'; var db = mongoose.connect(db_url); db.connection.on('error', function (error) 阅读全文
posted @ 2017-04-12 16:54 winyh 阅读(1738) 评论(0) 推荐(0) 编辑
摘要: mongodb安装 window安装方法就不讨论了,比较简单~我们来看一下在linux下面的安装步骤~(这里需要一点linux的简单命令知识哈) 1.下载文件到服务器(先创建好自己想安装的目录)~ 2.解压下载的文件 3.我们解压到这么长的文件名(mongodb-linux-i686-2.0.2-r 阅读全文
posted @ 2017-04-12 13:49 winyh 阅读(583) 评论(0) 推荐(0) 编辑
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 83 下一页