04 2024 档案
摘要:Vue2中的options API和Vue3.0中composition API Vue3的使用文档 options API示例 composition API是一组基于函数的API,可以更灵活的组织组件的逻辑 createAPP函数的第一个参数即composition API对象用于创建应用实例
阅读全文
摘要:进入方法: Windows/Linux: Ctrl + 左键单击(点击方法名) macOS: Cmd + 左键单击(点击方法名) 返回到进入位置: Windows/Linux: Alt + ←(Alt键加上左箭头) macOS: Cmd + [(Cmd键加上左方括号)
阅读全文
摘要:查看rollup的使用 通过yarn rollup命令查看配置使用,-c 是打包的入口文件, -f是输出文件的格式, -o 输出文件目录, --config 指定配置文件 rollup-plugin-node-resolve 用于帮助 Rollup 解析和导入 Node.js 模块,需要导入node
阅读全文
摘要:移动端项目支持rem 将public文件夹下的index.html中html标签加上id为"HTML",然后在项目的入口文件 (如 main.js 或 App.vue) 中设置根元素的字体大小 document.getElementById('HTML').style.fontSize =`${wi
阅读全文
摘要:常用的脚手架工具 Create React App Vue CLI Angular CLI Next.js Nuxt.js Express Generator Create React Native App Electron Forge Vite可用于构建 vite React等项目。 Yemon
阅读全文
摘要:性能指标方案 rail性能模型,Web Vitals 性能测试工具 1.Lighthouse的基本使用 在谷歌浏览器的开发者工具中 2.WebPageTest:[https://www.webpagetest.org/] 只能够测试已经发布的网址 3.Chrome DevTools测试性能、 网络请
阅读全文
摘要:node中自带的包 events事件发射器 http 创建一个服务 global对象 默认this是空对象与global不同 __filename __dirname process对象 常用 process.cwd() process.env process.stdout.write(data):
阅读全文