摘要: import React, { useState, useEffect, useRef, useCallback } from 'react'; function ClosureTrapDemo() { const [count, setCount] = useState(0); const lat 阅读全文
posted @ 2025-08-26 16:00 Julia-Yuan 阅读(16) 评论(0) 推荐(0)
摘要: (function flexible(window, document) { var docEl = document.documentElement; var dpr = window.devicePixelRatio || 1; // adjust body font size function 阅读全文
posted @ 2025-08-09 16:52 Julia-Yuan 阅读(3) 评论(0) 推荐(0)
摘要: <template> <div class="ScaleBox" ref="ScaleBox" :style="{ width: width + 'px', height: height + 'px', }" > <slot></slot> </div> </template> <script> e 阅读全文
posted @ 2025-08-09 16:45 Julia-Yuan 阅读(10) 评论(0) 推荐(0)
摘要: 第一种:for循环,也是最常见的 const arr = [11,22,33,44,55,66,77,88] for (let i = 0; i < arr.length; i++) { console.log(arr[i]) } 第二种:forEach() 1)、forEach()遍历普通数组 a 阅读全文
posted @ 2021-12-15 10:40 Julia-Yuan 阅读(6977) 评论(0) 推荐(0)
摘要: 这两个端口2113最大的区别就在于服务不同。 端口:80 服务:HTTP 说明:用于网页浏览。木马Executor开放此端口 端口:443 服务:Https 说明:网页浏览端口,能提供加密和5261通过安全端口传输的4102另一种HTTP。 HTTPS(Secure Hypertext Transf 阅读全文
posted @ 2020-06-04 17:53 Julia-Yuan 阅读(829) 评论(0) 推荐(0)
摘要: 我们可以用javascript获得其中的各个部分 1, window.location.href 整个URl字符串(在浏览器中就是完整的地址栏) 本例返回值: http://www.x2y2.com:80/fisker/post/0703/window.location.html?ver=1.0&i 阅读全文
posted @ 2020-06-04 17:52 Julia-Yuan 阅读(619) 评论(0) 推荐(0)
摘要: /*设置cookie*/ function setCookie(name, value, iDay) { var oDate = new Date(); oDate.setDate(oDate.getDate() + iDay); document.cookie = name + '=' + val 阅读全文
posted @ 2020-05-28 11:29 Julia-Yuan 阅读(309) 评论(0) 推荐(0)
摘要: 一: let、const 和 block 作用域 1:let 和 const 都是块级作用域 (ES6 推荐在函数中使用 let 定义变量,而非 var:) var a = 2; { let a = 3; console.log(a); // 3 } Xconsole.log(a); // 2 2: 阅读全文
posted @ 2020-03-20 23:09 Julia-Yuan 阅读(279) 评论(0) 推荐(0)
摘要: 今天在慕课网学习了“快乐动起来呀”老师的《ES6快速入门》 https://www.imooc.com/learn/955 1-1.课程介绍: ES使用情况: jquery==》偏ES3 vue==》偏ES6 recat==》偏ES6 所以es6是前端开发中主力的语言,很多开源框架基于es6语言进行 阅读全文
posted @ 2020-03-19 10:09 Julia-Yuan 阅读(186) 评论(0) 推荐(0)
摘要: git init 把当前的目录变成git仓库(在当前目录创建一个git代码库) git status 查看本地仓库状态 git add . 将所有修改过的工作文件提交暂存区(添加本地库)git add 文件名 将某个文件存入暂存区 git commit –m "提交的备注信息" 提交文件 –m 后面 阅读全文
posted @ 2020-03-16 22:57 Julia-Yuan 阅读(450) 评论(0) 推荐(0)