我的印象是这种语法:
import Router from 'react-router';
var {Link} = Router;
Run Code Online (Sandbox Code Playgroud)
具有与此相同的最终结果:
import {Link} from 'react-router';
Run Code Online (Sandbox Code Playgroud)
有人可以解释一下有什么区别吗?
(我原本以为这是一个React Router Bug.)
我的 vue 组件没有出现,我也看不到哪里出错了,我希望另一双眼睛可以指出我哪里出错了。我正在运行 npm run watch 并且我已经清除了我的缓存。
我的 app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize …Run Code Online (Sandbox Code Playgroud)