Wing Meng

Results 75 comments of Wing Meng

```js function epsEqu(a, b) { return Math.fround(a) === Math.fround(b) } ```

[在线Demo](https://codepen.io/wingmeng/pen/aMgZxQ) ---- ```html 提案笙9月30日21:47 什么秘密,我觉得你现在跟我说什么都没有意义。 淮南王铃10月8日10:30 @蝴蝶蓝 优秀 蝴蝶蓝昨天 22:13 值得一听~~ Y优秀X刚刚 围观戏精现场 ``` ```css html {font-size: 14px;} body { padding: 0; margin: 0; } h4 {font-weight: 500;} .chatbox {...

1. `'styleSheets'` 2. `'head'`, `'textContent'` 3. 不会 :cry: 4. 不会 :cry: 5. `3` (原来 id 还可以这么用) 6. 不会 :cry: 7. `~` 8. `not`

#### 第 1 题 ```js let title = '这是最后一期了,感谢同学们的一路相伴,更要向为47期小测耗费心血的张老师致敬!'; if (title.length > 15) { title = title.replace(/^(.{6}).*(.{6})$/, '$1...$2'); } console.log(title); // "这是最后一期...张老师致敬!" ``` #### 第 2 题 ```js let filename...

```js //zxx: 1,3测试没过 ``` #### 第 1 题: ```js function toCamelCase(str) { return str.replace(/-([a-z])/g, ($1, $2) => $2.toUpperCase()); } ``` #### 第 2 题: ```js function toDashJoin(str) { return str.replace(/[A-Z]/g,...

#### 第 1 题 ```js function trimBlank(strTel) { return strTel.trim() } ``` #### 第 2 题 ```js function doubleByteToSingle(strTel) { const doubleByteNums = '0123456789'; return strTel.replace( new RegExp('[' + doubleByteNums...

[> 在线 Demo a { /* 仅 Webkit 内核浏览器支持多行溢出打点效果,其他浏览器只截断 */ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; /* 设置最小和最大高度 */ min-height: calc(13px * 1.25 * 1.25); max-height: calc(13px * 1.25 *...

[> Demo wingmeng: 多谢张老师,昨晚太困了 js 逻辑没写完 :cry: ,今早才补完的 ```css .img-list { display: flex; flex-wrap: wrap; width: 260px; background: #fff; border: 1px solid #ccc; transition: all .2s; } .img-list.is-dragenter { background:...

``` html 登录 忘记密码?   登录 立即注册 ```

```js let arr = [1, 'a', 123, '巴啦啦', 3, 'hi~', 66, 'anyString']; ``` #### 方法1: ```js const mapping = arr.reduce((t, v, i) => (typeof v === 'number' && t.set(v, arr[i...