編寫微信小程式時出現的錯誤

2021-10-07 12:34:19 字數 499 閱讀 7381

為了防止重複出錯,我把這段時間的錯誤情況以及解決方法記錄下來:

1.錯誤please do not register multiple pages in ***

在使用echarts時,js中引用import * as echarts from '../../ec-canvas/echarts';出現報錯

檢查之後發現是打錯了

2.使用echarts後,頁面不顯示

發現是wxss檔案少了一句

3.真機除錯有問題unhandled promise rejection typeerror: r.canvas is not a constructor

查詢之後發現是canvas2d不支援真機除錯。

微信小程式時間加法 微信小程式日期轉換 比較 加減

日期轉時間戳 functiongetunixtime datestr 時間戳轉日期,falg true表示只要年月日,part year month date functiontodate number,flag,part else if part month else if part date r...

微信小程式時間邏輯判斷

最近專案上有個需求,計算請假時間,時間有效範圍是09 00 00到17 00 00 最好是去掉週末,很遺憾我這裡沒有排除掉,新人一枚,把自己做的發出來供大家指正一下,如果有更好的辦法歡迎交流討論 counttime function else if that.comparedate startdat...

微信小程式時間繫結分析

view searchinput searchinput tabs tabs bindstabsitemchange handletabsitemchange block wx if 0 block block wx elif 1 block block wx elif 2 block tabs v...