I saw the next ES6 code:
import '../node_modules/spectre.css/dist/spectre.min.css';
import './styles.css';
what's the meaning of using . .. ... .... just after
import '
The dots indicate which directory you're starting from.
./index.js
looks for index.js in the current directory. ../index.js
looks for index.js inside the parent directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.