上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 1、冒泡排序 2、快速排序 3、二路归并 字符串操作 1、判断回文字符串 2、翻转字符串 思路一:反向遍历字符串 思路二:转化成array操作 3、生成指定长度随机字符串 4、统计字符串中次数最多字母 数组操作 1、数组去重 2、数组中最大差值 其他常见算法 1、阶乘 非递归实现 递归实现 2、生成 阅读全文
posted @ 2017-12-26 10:44 abcByme 阅读(875) 评论(0) 推荐(2)
摘要: 当前,数据可视化已经成为数据科学领域非常重要的一部分。不同网络系统中产生的数据,都需要经过适当的可视化处理,以便更好的呈现给用户读取和分析。 对任何一个组织来说,如果能够充分的获取数据、可视化数据和分析数据,那么就能很大程度上帮助了解数据产生的深层次原因,以便据此做出正确的决定。 对于前端开发人员来 阅读全文
posted @ 2017-12-25 09:34 abcByme 阅读(3428) 评论(1) 推荐(0)
摘要: 冒泡排序 快速排序 去重 查找字符串中最多的值 阅读全文
posted @ 2017-12-20 16:38 abcByme 阅读(579) 评论(0) 推荐(0)
摘要: <meta content="webkit" name="renderer"><meta content="IE=Edge,chrome=1" http-equiv="X-UA-Compatible">解决浏览器渲染问题 阅读全文
posted @ 2017-12-20 16:15 abcByme 阅读(294) 评论(0) 推荐(0)
摘要: 原文:https://github.com/Chalarangelo/30-seconds-of-code#anagrams-of-string-with-duplicates 作者:Chalarangelo 译者:IT168 www.toutiao.com/i6498962961288135182 阅读全文
posted @ 2017-12-19 15:24 abcByme 阅读(476) 评论(0) 推荐(0)
摘要: 来自:https://segmentfault.com/a/1190000009294321 (侵删) git 源码地址 https://github.com/ustbhuangyi/vue-sell(侵删) html代码 生成一个动画小球的div,并且生成五个小球,五个是为了生成一定数量的小球来作 阅读全文
posted @ 2017-12-18 20:15 abcByme 阅读(2713) 评论(0) 推荐(0)
摘要: // 提取特殊字符串长度(scrstr 源字符串 armstr 特殊字符) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.replace(armstr, "") count++;... 阅读全文
posted @ 2017-12-05 19:30 abcByme 阅读(874) 评论(0) 推荐(0)
摘要: //两数组去除重复数值 mergeArray: function(arr1, arr2) { for (var i = 0; i < arr1.length; i++) { for (var j = 0; j < arr2.length; j++) { if (arr1[i] === arr2[j]) { arr1.... 阅读全文
posted @ 2017-12-05 18:14 abcByme 阅读(4277) 评论(0) 推荐(0)
摘要: getobjs(obj,key,value) 阅读全文
posted @ 2017-12-01 10:43 abcByme 阅读(1668) 评论(2) 推荐(0)
摘要: 转自:http://blog.csdn.net/qq_34543438/article/details/72868546?locationNum=3&fps=1 一、├── build // 项目构建(webpack)相关代码 记忆:(够贱) 9个│ ├── build.js // 生产环境构建代码 阅读全文
posted @ 2017-11-22 17:51 abcByme 阅读(948) 评论(0) 推荐(0)
摘要: 方法1:如果你想保留刚才本地修改的代码,并把git服务器上的代码pull到本地(本地刚才修改的代码将会被暂时封存起来) [plain] view plain copy git stash git pull origin master git stash pop [plain] view plain  阅读全文
posted @ 2017-11-20 19:06 abcByme 阅读(377) 评论(0) 推荐(0)
摘要: (function() { 'use strict'; /** * myApp Module * * Description */ angular.module('myApp') .filter('is_null', function() { return function(input) {... 阅读全文
posted @ 2017-11-17 10:45 abcByme 阅读(809) 评论(0) 推荐(0)
摘要: formatDuring: function(mss) { var days = parseInt(mss / (1000 * 60 * 60 * 24)); var hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = parseInt((mss % (1... 阅读全文
posted @ 2017-11-16 15:47 abcByme 阅读(1856) 评论(0) 推荐(0)
摘要: 转自:http://blog.csdn.net/sinat_17775997/article/details/54710420 注意:vue-router 2只适用于Vue2.x版本,下面我们是基于vue2.0讲的如何使用vue-router 2实现路由功能。推荐使用npm安装。 一、使用路由在ma 阅读全文
posted @ 2017-11-13 17:22 abcByme 阅读(738) 评论(0) 推荐(0)
摘要: 源:http://www.cnblogs.com/jn1223/p/6656956.html 源:http://www.cnblogs.com/jn1223/p/6656956.html 源:http://www.cnblogs.com/jn1223/p/6656956.html vue-cli中安 阅读全文
posted @ 2017-11-07 11:58 abcByme 阅读(518) 评论(0) 推荐(0)
摘要: Vue 2.5 发布了:15篇前端热文回看 2017-11-02 前端大全 (点击上方公众号,可快速关注) 本文精选了「前端大全」2017 年 10 月的 15 篇热门文章。其中有职场分享、技术分享和技术资源。 注:以下文章,点击标题即可阅读 《Vue 2.5 发布了》 我们很高兴宣布 Vue 2. 阅读全文
posted @ 2017-11-03 18:14 abcByme 阅读(415) 评论(0) 推荐(0)
摘要: // import Lesson17 from './class/lesson17';// console.log(Lesson17.A); //123 阅读全文
posted @ 2017-11-01 13:58 abcByme 阅读(780) 评论(0) 推荐(0)
摘要: 修饰器是一个函数,用来修改类的行为(注意:1、函数 2、修改行为 3、对类进行操作){ //修饰器函数定义 target:类本身,name名称,descriptor描述 let readonly = function(target, name, descriptor) { descriptor.writable = false; //只读 re... 阅读全文
posted @ 2017-11-01 13:38 abcByme 阅读(386) 评论(0) 推荐(0)
摘要: { // 长轮询 let ajax=function* (){ yield new Promise(function(resolve,reject){ setTimeout(function () { resolve({code:0}) }, 200); }) } let pull=function(){ le... 阅读全文
posted @ 2017-10-31 21:05 abcByme 阅读(319) 评论(0) 推荐(0)
摘要: function getExplorer() { var explorer = window.navigator.userAgent; //ie if (explorer.indexOf("MSIE") >= 0) { return 'ie'; } ... 阅读全文
posted @ 2017-10-30 15:40 abcByme 阅读(1125) 评论(0) 推荐(0)
摘要: 转自:CTOLib , www.ctolib.com/topics-107352.html ggraph - 图形可视化的凌乱数据 转自:CTOLib , www.ctolib.com/topics-107352.html ggraph - 图形可视化的凌乱数据 转自:CTOLib , www.ct 阅读全文
posted @ 2017-10-27 17:41 abcByme 阅读(4731) 评论(0) 推荐(1)
摘要: /* 获取当前环境: 系统环境: iOS Android PC 浏览器环境 微信内置浏览器、QQ内置浏览器、正常浏览器 是否app内打开 */ var ua = navigator.userAgent.toLowerCase(); //获取浏览器标识并转换为小写 var curConfig = { isiOS: !!navigator.userAgent.... 阅读全文
posted @ 2017-10-26 13:49 abcByme 阅读(4899) 评论(0) 推荐(3)
摘要: Iterator遍历器 遍历器(Iterator)就是这样一种机制。它是一种接口,为各种不同的数据结构提供统一的访问机制。任何数据结构只要部署Iterator接口,就可以完成遍历操作(即依次处理该数据结构的所有成员)。 作用: 为各种数据结构,提供一个统一的、简便的访问接口 使得数据结构的成员能够按 阅读全文
posted @ 2017-10-24 19:55 abcByme 阅读(567) 评论(0) 推荐(0)
摘要: { // 基本定义 let ajax = function(callback) { console.log('执行'); //先输出 1 执行 setTimeout(function() { callback && callback.call() }, 1000); }; ajax(funct... 阅读全文
posted @ 2017-10-23 20:48 abcByme 阅读(446) 评论(0) 推荐(0)
摘要: { // 基本定义和生成实例 class Parent{ constructor(name='mukewang'){ this.name=name; } } let v_parent1=new Parent(); let v_parent2=new Parent('v'); console.log('构造函数和实例',v_parent1,v_p... 阅读全文
posted @ 2017-10-23 19:52 abcByme 阅读(523) 评论(0) 推荐(0)
摘要: { //原始对象 let obj={ time:'2017-03-11', name:'net', _r:123 }; //(代理商)第一个参数代理对象,第二个参数真正代理的东西 let monitor=new Proxy(obj,{ // 拦截对象属性的读取 get(target,key){ return target... 阅读全文
posted @ 2017-10-23 19:27 abcByme 阅读(682) 评论(1) 推荐(0)
摘要: 1 用户名正则 //用户名正则,4到16位(字母,数字,下划线,减号) var uPattern = /^[a-zA-Z0-9_-]{4,16}$/; //输出 true console.log(uPattern.test("iFat3")); 2 密码强度正则 //密码强度正则,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符 var pPattern = /^.*(?=... 阅读全文
posted @ 2017-10-23 18:10 abcByme 阅读(7585) 评论(2) 推荐(0)
摘要: function testNumber(){ var yourinputValue=$("#yourinputId").val(); var reg = /^[1-9]\d*$/; alert(reg.test(yourinputValue)) } 阅读全文
posted @ 2017-10-23 17:56 abcByme 阅读(22560) 评论(0) 推荐(0)
摘要: //数据结构对比 增查改删 { //map、set和Object let item = {t:1}; let map = new Map(); let set = new Set(); let obj = {}; //增 map.set('t',1); set.add(item); obj['t'] = 1; co... 阅读全文
posted @ 2017-10-21 23:18 abcByme 阅读(1001) 评论(0) 推荐(0)
摘要: //数据结构对比 增查改删 { //map和array对比 let map = new Map(); let array = []; //增 map.set('t',1); array.push({t:1}); console.info('map-array',map,array) //{"t"=>1};-[0:{t:1}] ... 阅读全文
posted @ 2017-10-21 22:56 abcByme 阅读(1454) 评论(0) 推荐(0)
摘要: { let list = new Set(); list.add(5); list.add(7); console.log('size', list, list.size); //{5, 7} 2 } { let arr = [1, 2, 3, 4, 5]; let list = new Set(arr); console.log('... 阅读全文
posted @ 2017-10-20 19:30 abcByme 阅读(578) 评论(0) 推荐(0)
摘要: function hrefObj() { var localhref = window.location.href; var localarr = localhref.split('?')[1].split('&'); console.log(localarr) var tempObj = {}; 阅读全文
posted @ 2017-10-19 19:05 abcByme 阅读(6878) 评论(2) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2017-10-18 17:25 abcByme 阅读(691) 评论(0) 推荐(0)
摘要: var day1 = new Date("2017-9-17"); var day2 = new Date("2017-10-18"); console.log((day2 - day1) / (1000 * 60 * 60 * 24)); 阅读全文
posted @ 2017-10-18 17:04 abcByme 阅读(1235) 评论(0) 推荐(1)
摘要: function tab(date1,date2){ var oDate1 = new Date(date1); var oDate2 = new Date(date2); if(oDate1.getTime() > oDate2.getTime()){ console.log('第一个大'); } else { console.l... 阅读全文
posted @ 2017-10-18 16:20 abcByme 阅读(90399) 评论(2) 推荐(2)
摘要: { // 声明 let a1 = Symbol(); let a2 = Symbol(); console.log(a1 === a2); //false let a3 = Symbol.for('a3'); let a4 = Symbol.for('a3'); console.log(a3 === a4); //true } { ... 阅读全文
posted @ 2017-10-17 23:19 abcByme 阅读(660) 评论(0) 推荐(0)
摘要: getBeforeDate: function(day, str) { var now = new Date().getTime(); //获取毫秒数 var before = new Date(now - ((day > 0 && day ? day : 0) * 86400 * 1000)); var year = before.getFullYear(); var month = befo... 阅读全文
posted @ 2017-10-16 17:57 abcByme 阅读(859) 评论(0) 推荐(1)
摘要: { //简洁表示法 let o = 1; let k = 2; let es5 = { o:o, k:k }; let es6 = { o,k }; console.log(es5,es6); //1,2;1,2 let es5_method = { hell... 阅读全文
posted @ 2017-10-10 22:36 abcByme 阅读(896) 评论(0) 推荐(0)
摘要: //函数参数默认值(more值后不能有参数) { function test(x,y = 'world'){ console.log('默认值',x,y); } test('hello');// hello world test('hello','kill'); //hello kill } //作用域概念 { let x = 'te... 阅读全文
posted @ 2017-10-10 20:47 abcByme 阅读(420) 评论(0) 推荐(0)
摘要: Document t1 点击获取ip click me 阅读全文
posted @ 2017-10-10 16:39 abcByme 阅读(3786) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页