add test settle
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
||||
<script src="/js/jquery.js"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/mall.css">
|
||||
<title>Test Settle</title>
|
||||
<script>
|
||||
function settle() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/settle',
|
||||
data: {itemList: [1, 5, 2, 7, 4, 9, 4, 20, 34]},
|
||||
success: function () {
|
||||
window.location.href("/")
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<button onclick="settle()">Click me</button>
|
||||
|
||||
|
||||
<form method="post" action="/settle">
|
||||
<input type="text" name="itemList[]"/>
|
||||
<input type="text" name="itemList[]"/>
|
||||
<input type="text" name="itemList[]"/>
|
||||
<input type="text" name="itemList[]"/>
|
||||
<input type="submit">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user