上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: //生成Pager,当前页码, 总页数, 回调function $.fn.pager = function(page, total, callback) { var html = ''; html += '首页'; html += '上一页'; var start = page - 5... 阅读全文
posted @ 2017-12-06 13:44 吾生有涯,而知无涯! 阅读(201) 评论(0) 推荐(0)
摘要: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, ... 阅读全文
posted @ 2017-12-06 10:01 吾生有涯,而知无涯! 阅读(174) 评论(0) 推荐(0)
摘要: // 1. 工厂模式 //缺点:对象无法识别,因为原型都指向Object function pe() { var o = new Object(); o.name = name; o.getname = function() { console.log(this.name) } return o } // 2. 构造函数模式 // 优点... 阅读全文
posted @ 2017-12-05 16:32 吾生有涯,而知无涯! 阅读(210) 评论(0) 推荐(0)
摘要: //第一种方法 var arr = [0, 1, 2, 2, 3, 44, 44, 5, 6]; function uniq(arr) { return Array.from(new Set(arr)) } console.log(uniq(arr)) console.log(arr) // ES6 var newArr = (arr) => Array.from(new Set... 阅读全文
posted @ 2017-12-05 16:09 吾生有涯,而知无涯! 阅读(188) 评论(0) 推荐(0)
摘要: https://www.talkingcoder.com/article/6427434037544091919 阅读全文
posted @ 2017-12-05 14:54 吾生有涯,而知无涯! 阅读(122) 评论(0) 推荐(0)
摘要: /** * 存储localStorage */ export const setStore = (name, content) => { if (!name) return if (typeof content !== 'string') { content = JSON.stringify(content) } window.localStorage.setIte... 阅读全文
posted @ 2017-11-27 11:00 吾生有涯,而知无涯! 阅读(406) 评论(0) 推荐(0)
摘要: ## 页面自适应 选用淘宝 lib-flexible > 安装lib-flexible ``` npm install lib-flexible --save 在main.js页面引入import ‘lib-flexible‘; ``` > 安装 px2rem-loader ``` npm ins 阅读全文
posted @ 2017-11-17 16:00 吾生有涯,而知无涯! 阅读(2145) 评论(0) 推荐(0)
摘要: 技术选择 vue2.0、vue-router、vuex、axios、lib-flexible css编写 stylus 相关技术文档 http://www.zhangxinxu.com/jq/stylus/interpolation.php 规定TAB 为2个空格 如下: <style lang=" 阅读全文
posted @ 2017-11-09 11:37 吾生有涯,而知无涯! 阅读(217) 评论(0) 推荐(0)
摘要: 布局 效果如下 阅读全文
posted @ 2017-10-27 17:36 吾生有涯,而知无涯! 阅读(536) 评论(0) 推荐(0)
摘要: // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue'; import VueRouter from 'vue-router'; ... 阅读全文
posted @ 2017-10-25 10:40 吾生有涯,而知无涯! 阅读(11268) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页