摘要: 查看rollup的使用 通过yarn rollup命令查看配置使用,-c 是打包的入口文件, -f是输出文件的格式, -o 输出文件目录, --config 指定配置文件 rollup-plugin-node-resolve 用于帮助 Rollup 解析和导入 Node.js 模块,需要导入node 阅读全文
posted @ 2024-04-25 09:35 穹顶之下影 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 移动端项目支持rem 将public文件夹下的index.html中html标签加上id为"HTML",然后在项目的入口文件 (如 main.js 或 App.vue) 中设置根元素的字体大小 document.getElementById('HTML').style.fontSize =`${wi 阅读全文
posted @ 2024-04-23 15:34 穹顶之下影 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 常用的脚手架工具 Create React App Vue CLI Angular CLI Next.js Nuxt.js Express Generator Create React Native App Electron Forge Vite可用于构建 vite React等项目。 Yemon 阅读全文
posted @ 2024-04-13 18:06 穹顶之下影 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 性能指标方案 rail性能模型,Web Vitals 性能测试工具 1.Lighthouse的基本使用 在谷歌浏览器的开发者工具中 2.WebPageTest:[https://www.webpagetest.org/] 只能够测试已经发布的网址 3.Chrome DevTools测试性能、 网络请 阅读全文
posted @ 2024-04-10 15:49 穹顶之下影 阅读(5) 评论(0) 推荐(0) 编辑
摘要: vue 阅读全文
posted @ 2024-04-09 10:08 穹顶之下影 阅读(2) 评论(0) 推荐(0) 编辑
摘要: node中自带的包 events事件发射器 http 创建一个服务 global对象 默认this是空对象与global不同 __filename __dirname process对象 常用 process.cwd() process.env process.stdout.write(data): 阅读全文
posted @ 2024-04-01 17:26 穹顶之下影 阅读(15) 评论(0) 推荐(0) 编辑
摘要: canvas画一条直线 const canvas = document.getElementById('canvas') const ctx = canvas.getContext('2d') ctx.beginPath()//绘制都用beginPath和closePath包裹 ctx.lineWi 阅读全文
posted @ 2024-03-31 17:21 穹顶之下影 阅读(35) 评论(0) 推荐(0) 编辑
摘要: JSX 在 React 中使用 JSX 语法(JavaScript扩展)描述用户界面,在 React 代码执行之前,Babel 会将 JSX 语法转换为标准的 JavaScript API。JSX 语法就是一种语法糖。让开发人员舒服 JSX不同于vue模板的 属性值为JavaScript表达式,属性 阅读全文
posted @ 2024-03-30 18:09 穹顶之下影 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 传统服务端渲染 art-template包是一个模板解析器,其官网会有解析器的语法和使用 const express = require('express') const fs = require('fs') const template = require('art-template') cons 阅读全文
posted @ 2024-03-30 14:33 穹顶之下影 阅读(99) 评论(0) 推荐(0) 编辑
摘要: vue的原理主要从三个方面进行说明,分别是响应式原理、虚拟DOM、模板编译和组件化 响应式原理 一个普通的 JavaScript 对象传入 Vue 实例作为 data 选项,Vue 将遍历此对象所有的 property,并使用 Object.defineProperty 把这些 property 全 阅读全文
posted @ 2024-03-29 15:53 穹顶之下影 阅读(18) 评论(0) 推荐(0) 编辑