上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
  2022年6月18日
摘要: arguments可以打印此函数中传入的所有参数值 function test(name, age) { console.log(...arguments) //关键字 } test("yiyi", 24) 阅读全文
posted @ 2022-06-18 20:55 法老的微笑 阅读(28) 评论(0) 推荐(0)
摘要: 当你没有进行git add . git commit -m "" 两项操作,只在本地做了修改就可以先使用 git status 获取哪些文件被modified,并复制modified后面的路径,git checkout -- 复制文件路径即可撤销本地文件修改(撤销需谨慎,没了就没了) 如果是当天修改 阅读全文
posted @ 2022-06-18 09:51 法老的微笑 阅读(61) 评论(0) 推荐(0)
  2022年6月16日
摘要: <el-table style="width: 100%; height:calc(100% - 10px);"> </el-table> height:calc(100% - 10px); calc(100vh - 10px) 表示整个浏览器窗口高度减去10px的大小calc(100vw - 10 阅读全文
posted @ 2022-06-16 16:57 法老的微笑 阅读(89) 评论(0) 推荐(0)
摘要: 代码中如果少写break,case下的代码都会被执行 let key = 1; switch (key) { case 1: console.log("1" + key) // break; case 2: console.log("2" + key) break; default: break; 阅读全文
posted @ 2022-06-16 13:45 法老的微笑 阅读(39) 评论(0) 推荐(0)
  2022年6月15日
摘要: 找不到删除文件 检查看是不是id没有传对 参数 路径 请求方式 没有问题 那就不是前端的问题 可以找后端了 还是要先多找找自己的原因 阅读全文
posted @ 2022-06-15 18:54 法老的微笑 阅读(14) 评论(0) 推荐(0)
  2022年6月14日
摘要: let str = "http://www.study.com/0" console.log(str.slice(0, -2)) console.log(str) 运行结果: 阅读全文
posted @ 2022-06-14 20:19 法老的微笑 阅读(29) 评论(0) 推荐(1)
  2022年6月9日
摘要: let obj = {name: "yibo", age: 25} let newObj = Object.assign({}, obj,{name: "erer"}) console.log(newObj) 运行结果: 阅读全文
posted @ 2022-06-09 11:23 法老的微笑 阅读(26) 评论(0) 推荐(0)
摘要: let arr = [] // 初始化数组 arr = Array(3).fill(null) console.log(arr) 运行结果: slice() 方法可从已有的数组中返回选定的元素。 slice() 方法可提取字符串的某个部分,并以新的字符串返回被提取的部分。 注意: slice() 方 阅读全文
posted @ 2022-06-09 10:47 法老的微笑 阅读(28) 评论(0) 推荐(0)
摘要: C:\Users\Lenovo\.vscode\extensions 阅读全文
posted @ 2022-06-09 09:59 法老的微笑 阅读(72) 评论(0) 推荐(0)
  2022年6月8日
摘要: .font { font-style: italic; font-variant: normal; font-weight: 700; font-size: 18px; line-height: 1.5em; font-family: "Century Gothic", Futura, sans-s 阅读全文
posted @ 2022-06-08 21:22 法老的微笑 阅读(218) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页