node.js - React 基础知识问题
大家讲道理
大家讲道理 2017-04-17 16:31:13
0
1
422

最后一行代码的意思是什么,这种引入方式和前面几行有什么区别

var React = require('react');
var stype = require('./mainComponent.css');
var $ = require('jquery');
var baseUrl=require('../../../js/baseUrl.js');
var {Router, Route, hashHistory, Link, IndexRoute,browserHistory} = require('react-router');

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
Peter_Zhu

@zp1996 in the comment area is right

For the destructuring and assignment of variables, you can watch Ruan Yifeng’s tutorial
http://es6.ruanyifeng.com/#do...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template