畢設 微信商城遇到的問題(2018 4 7)

2021-08-18 08:55:36 字數 406 閱讀 2134

2018/4/7

1.【問題】commerciallist:109 uncaught typeerror: cannot read property 『pro_id』 of undefined

【解析】如果是在for迴圈下出現的這種問題,那麼就是要考慮訪問陣列是不是越界了的問題。參考寫js報錯「cannot read property 『style』 of undefined」,是什麼原因?

for (var i = 0; i

<=countlist; i++)

假設countlist = 5.而陣列arr下標從0開始,0,1,2,3,4是五個數,根據上面的**,會訪問到arr[5],但是沒有arr[5],所以才會undefined.將等號去掉就好了。

寫畢設遇到的sql問題

用的是idea內建的h2資料庫。問題1 判斷是否為空應該用is null,而不是 null。select count from data where disturb time is null or error code num is null or ciphertext notice time is...

最近畢設遇到的坑

cnpm i node sass g 2 webpack後報錯 module build failed error cannot find module node sass 說明還要安裝sass到專案中,執行下面的命令 cnpm install node sass latest 3 get提交中文資...

個人畢設中遇到的問題記錄(1)

1.關於 ajax post 裡面 ajax 執行非同步的ajax請求 通過http請求載入遠端的資料 語法 ajax settings 引數setting是用於配置ajax請求的鍵值對集合 例子 ajax setting裡面可以設定很多的引數,裡面有乙個type type指的是請求方式,有post...