Skip to content

Instantly share code, notes, and snippets.

@iamso1
Created September 14, 2017 16:47
Show Gist options
  • Save iamso1/c808d5abce49d48ee6fc4df660c737af to your computer and use it in GitHub Desktop.
Save iamso1/c808d5abce49d48ee6fc4df660c737af to your computer and use it in GitHub Desktop.
[Quokka] 各種小密技
  1. 重新啟動quokka的即時運算 按F1 並輸入 Quokka.js start on current file 就可以重新執行當前檔案

  2. 計算程式執行時間

//在要計算的程式後面加上 /*?.*/ 就會顯示當下執行的時間
let num=Math.floor(Math.random()*100);/*?.*/
  1. 顯示即時運算的值
//在要計算的程式後面加上 /*?*/ 就會顯示當下執行的結果
let num=Math.floor(Math.random()*100);/*?*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment