tzutzu858 / e-commerce Goto Github PK
View Code? Open in Web Editor NEW練習簡單的 CRUD 應用
練習簡單的 CRUD 應用
在購物車增減數量,再點購物車總金額會消失,再增減數量會變Nan
購物車數量為0,也可以結帳
在購物車增減數量,再點購物車商品無法刪除
確認是新帳號註冊完,在前端顯示 ID已經有人使用,請重新輸入!
,資料庫那邊也確認有寫入新會員資料,但是卻是跑 catch (ServiceException e)
。
try {
// 註冊成功
customerService.register(customer);
ok.add("註冊成功!");
request.setAttribute("ok", ok);
request.getRequestDispatcher("member.jsp").forward(request, response);
} catch (ServiceException e) {
// ID已經被註冊
errors.add("ID已經有人使用,請重新輸入!");
request.setAttribute("errors", errors);
request.getRequestDispatcher("member.jsp").forward(request, response);
}
去資料庫清空 Customers 這張 table ,之後便順利執行,但同樣 bug 無法再複製出來 Orz
目前註冊都是正常運作,猜想會不會是滑鼠連按兩下,嘗試過後直接跳 500,資料也沒有寫入,感覺是另一個要解決的 bug。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.