-
前端怎么实现划词评论?
2020-05-12 12:36See the Pen MWaXVdM by Blackman99 (@blackman99) on CodePen.
- Talk is cheap. Show you my code.
-
如何评价 Jboot 和 JPress?
2020-03-27 20:54刚刚上去 Jpress 点了几下,不超过 5 分钟:
- 二维码出不来
- 模板的布局、排版、样式有很大问题
- 扫码预览,结果扫完码是加一个人的微信。。。
-
请教如何简化大量 IF
2019-12-24 09:11Javascript
[ [1 === 1, () => { }], [2 === 2, () => { }] ].reduce((lastCondition, [condition, action]) => { let boolVal = lastCondition && condition if (boolVal ){ action() } return boolVal }, true)