大作业-修改了主页
This commit is contained in:
8
Project/static/js/index.js
Normal file
8
Project/static/js/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
window.onload = function() {
|
||||
// Display flashed messages, if any
|
||||
const messages = [];
|
||||
// Assuming messages are added via server-side templating
|
||||
if (messages.length > 0) {
|
||||
alert(messages.join("\n"));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user