Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged ES6

0 votes
1.4k views
1 answer
    I'm building a frontend app with React and Redux and I'm using axios to perform my requests. I would like ... can see all the other fields are present. Bests. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    This question already has answers here: Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    const compose = f => g => x => f(g(x)); const f = compose (x => x * 4) (x => x + 3); f(2) // 20 求一个化简后的compose!!!!!!.......还有为什么f(2)等于8...
asked Feb 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    这是我在书上看见的 真心没见过这么写的?我是说 为什么函数那边必须写 “*” 还有就是 那个 yield 是干什么的?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    for (let i = 0; i < 10; i++) { console.log(i); } 这样的情况,ios10.2的微信6.5.3版本下正常执行,在ios9.3.5的微信浏览器下报错了,我真是想不通啊,微信版本也是最高版本,6.5.3...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    没怎么找到es6 require的具体用法,大多是简单介绍用于加载模块,例如 const es_namespace = require('./es'); 但是我在其他地方看到这样用resolve => require(['../pages/login/'], resolve),这样的require函数代表啥意思啊?有官方文档出处吗?或者详细介绍?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    这句话是什么意思 var { auth = true } = meta 感觉{}是一个对象,但是里面的格式又不太对不是应该是{ auth: true }吗,然后又赋值meta的值?不懂是什么意思...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    export class Form extends Component { constructor(props) { super(props); } // 正则合集 rule() { required: function(val) { return /^ ... /^S+$/gi.test(val); }, this.rule().alpha()...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Is there a way to export nested types in typescript without using submodules (e.g. import "my-package/a")? Like this: import { A, X } from ... (y : X.Y) {} function z(z : X.Y.Z) {}...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    比如一个数组a a. map(item=>...). ruduce() 是执行完map 里面然后返回值再执行reduce,还是依次map再reduce?...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    我在项目的plugins目录下构建了一些插件目录 a b c ... 例如 plugins/a/index.js export default a plugins/index.js export { default as a } from '@plugins/ ... c 请问在 webpack 中如何将 b c shake掉 或者有没有其他做法呢?谢谢 ...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    我在项目的plugins目录下构建了一些插件目录 a b c ... 例如 plugins/a/index.js export default a plugins/index.js export { default as a } from '@plugins/ ... c 请问在 webpack 中如何将 b c shake掉 或者有没有其他做法呢?谢谢 ...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    网上说的 Symbol weakmap 感觉都可以拿到私有的属性...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    网上说的 Symbol weakmap 感觉都可以拿到私有的属性...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    const p1 = new Promise(function (resolve, reject) { setTimeout(() => reject(new Error('fail')), 3000) }) const p2 = new Promise( ... 是p2执行,过了一秒后resolve(p1),p1又执行了3秒,一共是4秒吗???...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    教程例子如下: function* dataConsumer() { console.log('Started'); console.log(`1. ${yield}`); console.log(`2. ${yield}`); return 'result'; } ... ,所以呈现为undefined 教程没详细解释整个流程,所以不清楚我思路错在哪里 ...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    const p1 = new Promise(function (resolve, reject) { setTimeout(() => reject(new Error('fail')), 3000) }) const p2 = new Promise( ... 是p2执行,过了一秒后resolve(p1),p1又执行了3秒,一共是4秒吗???...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    教程例子如下: function* dataConsumer() { console.log('Started'); console.log(`1. ${yield}`); console.log(`2. ${yield}`); return 'result'; } ... ,所以呈现为undefined 教程没详细解释整个流程,所以不清楚我思路错在哪里 ...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...