摘要:
```
function base64toBlob(base64,type) { // 将base64转为Unicode规则编码 let bstr = atob(base64, type), n = bstr.length, u8arr = new Uint8Array(n); while (n--) { u8arr[n... 阅读全文
摘要:
常用移动设备媒体查询条件 /*iPone4*/ @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {} /*iPhone 3G*/ 阅读全文
摘要:
在群里看到这样一个问题 出于好奇,进行了结构的尝试。 代码如下: let a = [1,2,3,4,5]; for(let i = 0;i 虽然省下来了存储变量的开销,但实际上每个长度都要实时获取,在不改变数组长度的情况下,这也是一种浪费,对处理机时长的浪费。 数组长度不大的时候,这种做法完全可以理 阅读全文