Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### 2021.01.13 今天是每日时报陪伴您的第 487 天 | ||
|
||
[工具] 一个矫正 JavaScript 的计算工具 vue-chemistry:<https://github.com/antfu/vue-chemistry> | ||
|
||
```js | ||
import { set } from "vue-chemistry"; | ||
import { sum } from "vue-chemistry/math"; | ||
import { log } from "vue-chemistry/console"; | ||
|
||
const a = ref(1); | ||
const b = ref(2); | ||
|
||
let c = sum(a, b); // c = a + b = 3 | ||
|
||
set(a, 2); // shorthand for a.value = 2 | ||
|
||
log(c); // it's 4 (2 + 2)! | ||
``` | ||
|
||
[工具] vscode 插件测试工具:<https://github.com/microsoft/vscode-test> | ||
|
||
[文章] 快过年了,用 JS 让你的网页放 🎆 烟花吧:<https://juejin.cn/post/6916930617166807054> | ||
|
||
![](https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d148b2769738478cbc9f28660abc2a9c~tplv-k3u1fbpfcp-watermark.image) |