12 2021 档案

摘要:HTML5标准规定 setTimeout的最短时间间隔是4毫秒; setInterval的最短间隔时间是10毫秒,也就是说,小于10毫秒的时间间隔会被调整到10毫秒 书和MDC 在John Resig的新书《Javascript忍者的秘密》一书中提到 Browsers all have a 10ms 阅读全文
posted @ 2021-12-30 10:09 时间观测者 阅读(1471) 评论(0) 推荐(0) 编辑
摘要:Object.assign() 提供浅拷贝(仅属性和方法),它将覆盖声明的方法和属性 . 而Object.create() 提供深拷贝提供原型链 var target1 = {prop:111,prop2:222}, target2 = {prop:111,prop2:222}; var obj1 阅读全文
posted @ 2021-12-28 11:17 时间观测者 阅读(220) 评论(0) 推荐(0) 编辑
摘要:let obj1 = { a:1, b:2, c:3 } let obj2 = { f:1, s:{ s1:1, s2:2 }, t:3, } Object.defineProperty(obj2, "t", {// 给obj2的t属性设置了值和不可被枚举/* * for…in* Object.ke 阅读全文
posted @ 2021-12-26 20:33 时间观测者 阅读(137) 评论(0) 推荐(0) 编辑
摘要:关于请求发送 1、const params = new URLSearchParams(), params.append('search','搜索的内容') 发送请求时把params拼接搜索项携带。 2、 let url = new URL('https://www.baidu.com/s?ie=u 阅读全文
posted @ 2021-12-24 09:56 时间观测者 阅读(53) 评论(0) 推荐(0) 编辑
摘要:之前使用嵌套路由的时候发现搞不清楚为什么没有正确显示,查阅文档后,根据自己的理解把实验过程记录一下 <!-- HTML --> <div id="app"> <p> <router-link to="/a">a</router-link> ** <router-link to="/a/b">b</r 阅读全文
posted @ 2021-12-23 10:34 时间观测者 阅读(64) 评论(0) 推荐(0) 编辑
摘要:Git中从远程的分支**最新的版本到本地有这样2个命令:1. git fetch:相当于是从远程**最新版本到本地,不会自动merge git fetch origin master git log -p master..origin/master git merge origin/master 以 阅读全文
posted @ 2021-12-14 12:00 时间观测者 阅读(679) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示