julytian
julytian
## 配置 flexible ### 安装 lib-flexible 在命令行中运行如下安装: ```js npm i lib-flexible --save ``` ### 引入 lib-flexible 在项目入口文件 main.js 里 引入 lib-flexible ```js // main.js import 'lib-flexible' ``` ### 添加 meta...
## 中文文档 [地址](https://github.com/coghost/electron-vue-zh-book) ## 基于electron和vue实现的浏览器 [地址](https://github.com/xiangwan/electron-vue-browser)
## 快速制作微信h5 [京东的ELF](https://elf.aotu.io/) [微信团队的 pageslider](https://github.com/weixin/PageSlider) ## loading炫酷css ```html 加载中... ``` ```css .loading { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 9999; background-color: #363535 } .loading .inner...
http://www.cnblogs.com/taoshengyijiuai/p/6973124.html
## 安装 ```js npm install -g rimraf ``` ## 使用 ```js cd xxx[include node_modules folder] rimraf node_modules ```
```js function proMove() { var agent = navigator.userAgent.toLowerCase(); //检测是否是ios var iLastTouch = null; //缓存上一次tap的时间 if(agent.indexOf('iphone') >= 0 || agent.indexOf('ipad') >= 0) { document.body.addEventListener('touchend', function(event) { var iNow = new Date().getTime();...
使用于频繁操作,例如 resize, scroll 等操作 ```js function throttle(method,delay,duration){ var timer=null, begin=new Date(); return function(){ var context=this, args=arguments, current=new Date();; clearTimeout(timer); if(current-begin>=duration){ method.apply(context,args); begin=current; }else{ timer=setTimeout(function(){ method.apply(context,args); },delay); } } } ```...