fakership / interview-oriented-programming Goto Github PK
View Code? Open in Web Editor NEW面向面试编程
面向面试编程
算法相关:
面试可以考虑问广泛一点,技术到7会走两个方向,一个是深耕技术,一个是工程管理。个人觉得前端没有太多业务需要很深技术功底,新技术使用,看看文档,跑跑 demo 也能慢慢用起来。相反,工程管理,业务理解,体系化思考这些有点虚的东西其实更难,可能给业务或者产品带来的东西更多。
Promise.retry = function(fn, num) {
// 最终是返回一个Promise
return new Promise((resolve, reject) => {
// 执行函数
let action = function (resolve, reject) {
fn().then((prod) => {
resolve(prod);
}).catch(e => {
if (num > 0) {
// 不为0递归调用执行函数
action(resolve,reject);
} else {
// 数量为0则拒绝
reject(e);
}
num--;
})
}
// 调用执行函数
action(resolve,reject);
})
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.