vue中模块导入时路径的写法

导入组件或者模块时,路径的写法可写为相对路径或者绝对路径:
1.相对路径(默认的路径写法)

import home from "../views/home.vue"

2.绝对路径(@相对于src目录)

import home from "@/views/home.vue"

《vue中模块导入时路径的写法》上有2条评论

  1. Absolutely NEW update of captcha solution package “XEvil 5.0”:

    Captcha solving of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Microsoft, Mail.Ru, SolveMedia, Hydra,
    and more than 12000 another categories of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 5.0 with any most popular SEO/SMM software: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other software.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.

    Free XEvil Demo available.

    Good luck!
    P.S. A Huge Discount -30% for XEvil full version until 15 Jan is AVAILABLE! 🙂

    XEvil Net

发表评论

电子邮件地址不会被公开。 必填项已用*标注