ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    puppeteer launch 启动本地已安装的Chrome 浏览器

    Oct 21, 20222 min read
    const browser = await puppeteer.launch({
        args: ['--no-sandbox', '--disable-setuid-sandbox'],
        headless: false ,
        executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" //Found at chrome://version
    });
    

    相关文章

    如何提高动画性能?

    提高动画性能的方法包括使用硬件加速、减少图层和过度绘制、选择合适的图像格式、减少复杂动画效果以及利用动画缓存。

    如何理解Vue3 的 ref

    Vue3 中的 ref 是一个新的响应式 API,用于创建响应式对象并绑定到模板中,通过 count.value 访问和修改值,并支持作为 props 传递到子组件。

    Flutter Error Member not found 'packageRoot'

    Flutter项目遇到"Member not found: 'packageRoot'"错误,解决方法是删除pubspec.lock文件后重新运行。

    JS 页面刷新的console命令

    该JavaScript代码允许用户设置页面自动刷新间隔,并在控制台记录刷新次数。

    Git 中更改远程仓库(remote)的 URL 相关操作

    在 Git 中,通过 `git remote -v` 查看远程仓库 URL,使用 `git remote set-url origin [新URL]` 更改 URL,再次使用 `git remote -v` 确认更改。