保存进度!

This commit is contained in:
Kane Wang 2022-09-08 18:11:25 +08:00
parent a3d1a99897
commit 07ff369aba
3 changed files with 30 additions and 3 deletions

View File

@ -2,8 +2,8 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-09-07 16:50:27 * @Date: 2022-09-07 16:50:27
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2022-09-07 17:35:16 * @LastEditTime: 2022-09-08 18:09:45
* @FilePath: \app-model\src\main\java\AppMain.java * @FilePath: \product_form\src\main\java\AppMain.java
* @Description: * @Description:
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
@ -12,6 +12,7 @@
/***************************************************** /*****************************************************
* *
*****************************************************/ *****************************************************/
@SuppressWarnings( "all")
public class AppMain public class AppMain
{ {
public static void main( String[] args ) public static void main( String[] args )

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-09-07 16:48:10 * @Date: 2022-09-07 16:48:10
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2022-09-07 19:21:54 * @LastEditTime: 2022-09-08 18:10:54
* @FilePath: \product_form\src\main\webapp\index.html * @FilePath: \product_form\src\main\webapp\index.html
* @Description: * @Description:
* *
@ -27,4 +27,5 @@
</form> </form>
</div> </div>
</body> </body>
<script src="js/ajax_test.js"></script>
</html> </html>

View File

@ -0,0 +1,25 @@
/*
* @Author: Kane
* @Date: 2022-09-08 17:27:10
* @LastEditors: Kane
* @LastEditTime: 2022-09-08 17:35:48
* @FilePath: \product_form\src\main\webapp\js\ajax_test.js
* @Description: 做一些Promise的测试
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
const p1 = new Promise((resolve, reject) => {
setTimeout(() => {
resolve("测试resolve!");
//reject("测试reject!");
}, 2000);
})
const p2 = p1.then(
(reason) => {
console.log(reason)
},
(reason) => {
console.log(reason);
}
);