第57期 — 2020-05-31

在浏览器中阅读

周e信

扫描二维码关注微信公众号

Node.js

strapi - 开源nodejs CMS(内容管理系统)🔗

支持MongoDB, PostgreSQL, MySQL, MariaDB, SQLite.

strapi

Garrone Joseph

Javascript

Ekaterina Vujasinović

Nick Scialli

pikapkg

number-precision - 精确数字操作库🔗
import NP from 'number-precision'
NP.strip(0.09999999999999998); // = 0.1
NP.plus(0.1, 0.2);             // = 0.3, not 0.30000000000000004
NP.plus(2.3, 2.4);             // = 4.7, not 4.699999999999999
NP.minus(1.0, 0.9);            // = 0.1, not 0.09999999999999998
NP.times(3, 0.3);              // = 0.9, not 0.8999999999999999
NP.times(0.362, 100);          // = 36.2, not 36.199999999999996
NP.divide(1.21, 1.1);          // = 1.1, not 1.0999999999999999
NP.round(0.105, 2);            // = 0.11, not 0.1

NEFE

Pantelis Kalogiros

前端

David Jeans

Tom McLaughlin

target="_blank" 为什么要特别注意🔗

因为 window.opener 可以操作原来页面,例如window.opener.location = 'https://phishingwebsite/facebook.com/page.html';

<a href="/share" rel="noopener noreferrer" target="_blank" />

Manjula Dube

Mert Cukuren

Mia Wang

Big Sky Software

投稿

react form验证框架合集🔗

一般适用

其他

不推荐以下不再维护的库

  • React-Formal
  • React-forms
  • Value Link
  • newforms
  • formjs
  • tcomb-form

Wern Ancheta

lineicons

James Simpson

codefence

Preet

移动端

John Hughes

数据库

多租户系统的数据库设计比较🔗

还是提倡行级区分,使用 tenant_id

TOMASZ WRÓBEL

其他

Arelia Jones

Xavier Lefèvre

websocket嗅探到底可不可能导致危害🔗
  • 在线测试
  • 作者认为可能性不大
  • 但还是期待需要有个浏览器规则管一下

Steve Stagg

Robert Olsthoorn

David Jeans

REST Client - VSCode 取代 postman 的插件🔗
  • 支持.rest 或.http 文件格式
  • 支持多个请求
  • 支持导出 cURL 命令
  • 支持自动补全

Huachao Mao

扫描二维码关注微信公众号
本期阅读量