zoukankan      html  css  js  c++  java
  • chrome实现网页自动刷新——使用VScode中的插件livereload

    1.在VScode、Chrome商店中搜索livereload插件安装

    2.chrome插件设置中允许访问文件网址:

      

     

    3.在VSCode中:Ctrl + Shift+ P,搜素livereload,并回车/点击“LiveReload: Enable/disable server”。如图所示:

      

      左下角显示:The LiveReload plugin has been enables.

      

     

    4.Chrome中点击插件livereload。

      点击后悬浮该如下图所示提示则连接成功。

      

      若点击chrome的该扩展程序若显示Could not connect to LiveReload server. Please make sure that a compatible LiveReload server is running. (We recommend guard-livereload, until LiveReload 2 comes to your platform.)

      则说明VScode中没有打开该插件。返回步骤3即可。

    5.使用chrome打开HTML文件,在VCcode同时打开该HTML文件,Ctrl+S保存html文件,chrome会自动刷新。

    6.关于VScode中liveReload貌似每次都要手动启动插件的问题

      ※貌似可以在设置中输代码设置,不过本人目前学艺不精暂时还不会。通过之前的搜索貌似有看到有人发布过这方面相关内容。

  • 相关阅读:
    Embedded
    uboot第一阶段详细分析
    nandflash裸机程序分析
    u-boot在nandflash中的前4k内容分析
    使用JLink间接烧写s3c6410 nand_flash的方法
    Emacs
    U-boot 软浮点 错误 解决方法
    linux系统移植流程
    使用JLink烧写bin文件到Mini2440
    uboot-2012.07移植到fl2440开发板(一)
  • 原文地址:https://www.cnblogs.com/ranine/p/10771675.html
Copyright © 2011-2022 走看看