此人尚未填寫簡介。
註冊於2023年06月28日
  發表了 3 篇貼文
  新增了 8 則留言
  貼文共 996 次瀏覽
全部留言

math.js 無法運行

我主要是想寫個解方程式的程式碼


求助我要做一個計時器小程序

``` var time_val; var go_timer; var stop_time = 0; function add_zero(num, digit) { let numString = String(num) while (numString.length < digit) { numString = "0" + numString } return numString } go_timer = new Date(); time_val = setInterval(() => { let temp_timer = new Date().getTime() - go_timer.getTime(); let day = add_zero(Math.floor(temp_timer / 1000 / 60 / 60 / 24), 2); let hours = add_zero(Math.floor(temp_timer / 1000 / 60 / 60) % 24, 2); let minutes = add_zero(Math.floor(temp_timer / 1000 / 60) % 60, 2); let seconds = add_zero(Math.floor(temp_timer / 1000 % 60), 2); let milliseconds = add_zero(temp_timer % 1000, 3); var timers = [day, hours, minutes, seconds, milliseconds]; console.log(timers[0] + "天\n" + timers[1] + "時\n" + timers[2] + "分\n" + timers[3] + "秒\n" + timers[4] + "毫秒"); }, 1)


求助我要做一個計時器小程序

![](https://i.imgur.com/fcb92uZ.jpg) 手錶上運行失敗


求助我要做一個計時器小程序

用node.js試試看


請大佬幫幫我

你有興趣開發小米手環嗎 https://www.bandbbs.cn/ ![](https://i.imgur.com/QyCaIix.png)


請大佬幫幫我

我把它改成這樣就好了 ``` function undefined_test(val) { if (val == null || val === undefined) { return 1 } else { return 0 } }


請大佬幫幫我

#https://docs.huami.com/zh-cn/docs/reference/device-app-api/hmUI/widget/IMG/


請大佬幫幫我

我主要是在小米手環7上測試 然後用 for 檢測json裡面的值 並回傳裡面有幾個值是undefined