摘要: const fetch = () => new Promise((res) => { setTimeout(() => res({ user: 'zhen' }), 1150) }) globalThis.fetch = fetch async function getUser() { return 阅读全文
posted @ 2024-08-23 19:43 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: For this code, try to not modify the code itself but mutate obj var o = (function () { var obj = { a: 1, b: 2, }; return { get: function (k) { return 阅读全文
posted @ 2024-08-23 03:47 Zhentiw 阅读(9) 评论(0) 推荐(0) 编辑