- 博客(143)
- 资源 (2)
- 收藏
- 关注
原创 产品设计之服务拓扑关系-apm-基础设施-paas-产品设计-调用关系-性能
产品设计-服务拓扑关系-apm-基础设施-paas-产品设计-调用关系-性能
2022-02-15 19:17:51 3616
原创 一张图看:前端工程化-cdn-私服-组件库-云-devops-cnpm-webpack
前端工程化-cdn-私服-组件库-云-devops-cnpm-webpack
2022-02-15 16:49:47 715
原创 前端有感
入行也有几年了,好久没有写文章了;想想这几年做的的事情,写业务,做监控和性能提升;重构和写微前端,捣鼓k8s;时光过得真快啊;愿自己在前端的路上能远走越远;...
2020-05-06 18:45:59 158
原创 vue小总结1
vue 关键词:lazyload infinite scroll loadingmoretoastswiper白屏----按需引用(待定 resolve---)webpack配置首屏加载vuex状态管理特别粗糙的几个页面:音乐可视化vue-canvas做的一个音乐控件链接是我的github项目地址:https://github.com/yestodorrow/music_box瀑布流懒加载vuex...
2018-03-28 17:57:01 265
原创 vue-awesome-swiper
it nearly took me one hour to fix this, one tip for future users: look for the new api document, particular the english version for future bugs
2018-03-02 10:34:56 317
转载 封装的调整样式
(function(win,doc){ var defaultSettings={ color:'red', background:'blue', border:'2px solid #ddd', fontSize:'30px', testAlign:'center', width:'200px...
2018-03-01 21:17:25 442
转载 borrowed from other articles for axios use
import axios from 'axios'import qs from 'qs'axios.interceptors.request.use(config=>{ store.commit('UPDATE_LOADING',true) return config},err=>{ return Promise.reject(err)})axios.inte...
2018-03-01 10:28:57 219
转载 跨浏览器的事件对象
var EventUtil={ getEvent:function(event){ return event?event:window.event; }, getTarget:function(){ return event.target||event.srcElement; }, preventDefault:function(ev...
2018-02-22 23:29:02 167
转载 tap事件船头
摘自知乎正常有意义的用户操作不会在500毫秒内连续触发两次tap事件,如果发现两次tap事件的时间间隔不大于500毫秒则阻止第二次tap事件(function(){ var Interval_min=500; var lastCalledTime=(new Date()).getTime(); function throttle(handler){ retu...
2018-02-22 18:07:00 174
转载 throttle-javascript高级程序设计
var throttle={ timeoutId:null, performProcessing:function(){ }, process:function(){ clearTimeout(this.timeoutId); var that =this; this.timeoutId=setTimeout(function(){ that....
2018-02-20 10:52:24 318
转载 eventUtil
var EventUtil={ addHandler:function(element,type,handle){ if(element.addEventListener){ element.addEventLister(type,handle,false) }else if(element.attachEvent){ element.attachEve...
2018-02-20 10:27:56 334
原创 es6 basic intro
//var name=”liugang” //while(true){ // var name=”xiaoming”; // console.log(name);// // break //} //console.log(name);//let name=”liugang”; //while(true){ // let name=”xiaoming”;
2018-01-08 14:32:04 133
原创 clock-canvas
先列出效果图吧; 基本布局:html>head lang="en"> meta charset="UTF-8"> title>title> style> div { text-align: center; margin-top: 250px; } style>he
2017-10-23 15:43:55 278
原创 中序遍历二叉树
先上代码:<script> var count=0; function BinaryTree(){ var Node=function(key){ this.key=key; this.left=null; this.right=null; } var insert
2017-10-23 11:33:02 304
原创 loading-css
效果如下: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>定时器的进度条</title> <style> .loading { width: 100%; height: 100%; positi
2017-10-19 17:40:36 199
原创 二叉排序
function BinaryTree() { var Node = function (key) { this.key = key; this.left = null; this.right = null; } var root = null; var inser
2017-10-18 15:54:35 268
原创 未完成--Sum of Pairs
Sum of PairsGiven a list of integers and a single sum value, return the first two values (parse from the left please) in order of appearance that add up to form the sum.sum_pairs([11, 3, 7, 5],
2017-10-16 14:03:06 442
原创 数组奇数排序
You have an array of numbers.Your task is to sort ascending odd numbers but even numbers must be on their places.Zero isn't an odd number and you don't need to move it. If you have an empty array, you
2017-10-16 11:17:57 757
原创 单例模式--《js设计模式和开发实践》
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title></head><body><button id="loginBtn">登录</button><script>// 1----// var loginLayer=(function(){// var di
2017-10-13 16:29:07 245
原创 Don't give me five!
In this kata you get the start number and the end number of a region and should return the count of all numbers except numbers with a 5 in it. The start and the end number are both inclusive!Examples:1
2017-10-13 11:06:44 509
原创 call、apply
//call和apply的区别 //Function.prototype.call和Function.prototype.apply区别仅在于传入的参数不同; //apply接受两个参数,第一个是函数体内this对象的指向,第二个参数为一个带下标的集合var func=function(a,b,c){ console.log([a,b,c])}func.apply(null,[1,2
2017-10-12 15:36:44 179
原创 dna reverse
Deoxyribonucleic acid (DNA) is a chemical found in the nucleus of cells and carries the "instructions" for the development and functioning of living organisms.If you want to know more http://en.wikiped
2017-10-12 14:09:56 414
原创 two js questions
1.It's pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You're given one parameter, except in C, where, to keep the difficulty at the le
2017-10-12 13:37:23 292
原创 算法入门题
1.Your task is to write a function which returns the sum of following series upto nth term(parameter).Series: 1 + 1/4 + 1/7 + 1/10 + 1/13 + 1/16 +...Rules:You need to round the answer to 2 decimal pla
2017-10-11 11:21:07 358
原创 未完成--练习题
1 You are going to be given a word. Your job is to return the middle character of the word. If the word’s length is odd, return the middle character. If the word’s length is even, return the middle 2
2017-10-10 16:46:45 936
原创 未完成--字典--《数据结构与算法》
//字典是键值对存储数据的数据结构 //这里我们定义一个Dictionary类function Dictionary() { this.dataStore = new Array(); this.add = add; this.find = find; //this.remove=remove; this.showAll = showAll;}//先来定
2017-10-10 10:20:25 163
原创 递归模拟演示--栈--《数据结构与算法》
//递归模拟演示:阶乘 //下面是一个递归函数` “function factorial(n){ if(n===0){ return 1 }else{ return n*factorial(n-1) } }//使用栈来模拟计算function fact(n){ var s=new Stack(); whil
2017-10-09 13:59:15 467
原创 回文--栈-《数据结构与算法》
//使用栈来判断是否是回文 //回文:从前往后写和从后网前些是一样的 //实现: // 1.将字符串的每个字符按照从左往右顺序压入栈; // 2.持续弹出栈内的每个字母,得到新的字符串; //3.如果两个字符串相等,结果是回文;否则返回falsefunction isPalindrome(word){ var s=new Stack(); for(var i=0;i<wo
2017-10-09 11:05:23 888
原创 数制间的相互转换--栈--《数据结构与算法》
//使用栈来实现数制间的相互转换 //实现的算法如下: //1,最高位为n%b,将此位压入栈; //2,使用n/bd代替n; //3,重复步骤1和2,直到n等于0,且没有余数; //4,持续将栈内元素弹出,直到栈为空,依次将元素排列,直到得到转换后数字的字符串形式。function mulBase(num,base){ var s=new Stack(); do{
2017-10-09 10:49:14 533
原创 栈简单介绍-《数据结构与算法》
//栈是一种后入先出LIFO,last-in-first-out的数据结构//所以任何不在栈顶的元素都无法访问,对栈的操作主要是将元素压入push和弹出pop;peek用于查看栈顶的元素;//定义stack类的构造函数,和相关操作;function Stack(){ this.dataStore=[]; this.top=0; this.push=push; t
2017-10-09 10:30:04 333
转载 不错的面试经历
作者:信鑫-King 链接:https://www.nowcoder.com/discuss/50455 来源:牛客网lz 双非本科,前端开发技术渣。一字一字码出来的实习和校招经历,希望大家都能拿到自己心仪的offer ~ ~找实习 战线从寒假2月就开始了,一直持续到4月中。寒假期间2月底拿到美团实习散招offer,3月去北京美团实习,实习期间陆续拿到 网易游戏、腾讯音乐、支付宝 的暑假实习o
2017-09-30 14:31:05 1900
原创 美丽的水仙花
春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的: “水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比如:153=1^3+5^3+3^3。既然是三位数,必然满足1.>1002.由a,b,c三个数字组成abc;如果求n以下的符合水仙花的数字?该如何求呢? 以下是一种解法:function search(n){ function tri(z){
2017-09-30 11:33:46 287
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人