[前端] 每日时报-2019.07.11

2019-07-11 16:28:17 +08:00
 wubaiqing

2019.07.11

GitHub: https://github.com/wubaiqing/zaobao

[类库] common-tags 是处理字符串模板( template_strings )所用到的工具,它提供了大量函数,如:处理字符串模板时出现缩进、换行、循环等问题,感觉很好用哈:https://github.com/declandewet/common-tags

[新闻] Lodash 被爆出一个高严重性安全漏洞——原型污染漏洞,如果是对外开放的服务,需要尽快升级哈:https://mp.weixin.qq.com/s/tfZq2PZylGfMjOp8h8eeTw

[新闻] 阿里巴巴发布 Aliyun Serverless VS Code 插件,轻松开发阿里云函数计算:https://mp.weixin.qq.com/s/K-ZB-DvZRA9S3OxBQ9PwZw

[文章] 了解什么是微前端:https://juejin.im/post/5d1f19e3f265da1bab29ce5f

[工具] 一款真正的跨平台摸鱼神器,可以更加隐秘性大胆的看小说:https://github.com/cteams/Thief-Book

示例

import {html} from 'common-tags'
let fruits = ['apple', 'orange', 'watermelon']
html`
  <div class="list">
    <ul>
      ${fruits.map(fruit => `<li>${fruit}</li>`)}
      ${'<li>kiwi</li>\n<li>guava</li>'}
    </ul>
  </div>
`
<div class="list">
  <ul>
    <li>apple</li>
    <li>orange</li>
    <li>watermelon</li>
    <li>kiwi</li>
    <li>guava</li>
  </ul>
</div>

配图

今日图 - 如何证明豹和老虎都是猫科动物

1235 次点击
所在节点    分享发现
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/582075

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX