偵錯是寫程式的基本功,很多初學者不會使用,執行時就找不到錯在那裡,今天就用網友的例子來做教學,他犯了一般初學者都會遇到的問題,就是變數用到保留字(Date,confirm,location,status)
在chrome按[F12]
切換到[Sources]/點選[Open File]開啟目前檔名相同名稱.
colsole.log 在控制台中顯示
網友問題
http://discuz.bestdaylong.com/thread-39041-3-1.html
前端:
https://lst2021.blogspot.com/2021/01/var-datereviver-function-key-value-var.html
範例: http://bestdaylong.com/html/inq05a.htm
沒有留言:
張貼留言