摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-22 23:11 ascertain 阅读(205) 评论(0) 推荐(1) 编辑
摘要: 使用Promise封装ajax function ajax (url) { return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest() xhr.onreadystatechange = function () { 阅读全文
posted @ 2022-03-22 22:07 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 通用公式: a % b = a - int(a / b) * b 取整: 向下取整 -∞方向 floor(a/b) 取底除法Python 向零取整, 舍弃小数, 截断除法C Java Javascript 取模公式通用, 但是因为取整的区别, Python的取模跟其他语言不一样,Python真是怪胎 阅读全文
posted @ 2022-03-22 12:19 ascertain 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 正常情况, 赋值给其他变量 public class B { public static void main(String[] args) { int bb = 5; int pp = ++bb; System.out.println(pp); } } public class B { public 阅读全文
posted @ 2022-03-22 10:56 ascertain 阅读(28) 评论(0) 推荐(0) 编辑