摘要: const arr = ['a', 'a', 'a', 'd', 'e', 'f'] for (let i = 0; i < arr.length; ++i) { console.log(`arr.length = ${arr.length}, i = ${i}`) if (arr[i] 'a') 阅读全文
posted @ 2022-03-19 13:52 ascertain 阅读(202) 评论(0) 推荐(0) 编辑
摘要: put wares { "settings":{ "number_of_shards": 1, "number_of_replicas":0 }, "mappings":{ "properties":{ "id":{ "type":"integer" }, "title":{ "type": "ke 阅读全文
posted @ 2022-03-19 10:15 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 以下测不出效果, 因为程序逻辑是在function two中执行 <script> function one () { console.info('one') } function two () { setTimeout(() => { console.info('two') }, 1) } fun 阅读全文
posted @ 2022-03-19 08:44 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <!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-19 08:18 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要: BFC: block formatting context <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <me 阅读全文
posted @ 2022-03-19 07:50 ascertain 阅读(68) 评论(0) 推荐(0) 编辑