const arr = [2,4,16]; let v = 0; for(const i in arr) v |= arr[i]; console.log(v);
let xxx = 23;// 16 4 2 let r = []; let i = 0; while (xxx > 0) { const x = xxx & Math.pow(2, i); if (x) { xxx -= x; r.push(x); } i++; }
上一篇CSS外观样式属性
下一篇11.ThinkPHP分页
苹果iphone如何开启青少年模式
微信青少年模式怎么关闭
Web CSS
网页播放摄像头视频 一种新的实现方式(非ocx方式)
学习js和jQuery总结
Web HTML
Flask简单http接口实现
PHP文件基础操作