search

Home  >  Q&A  >  body text

node.js - React 基础知识问题

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

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');

大家讲道理大家讲道理2785 days ago428

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 16:33:13

    @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...

    reply
    0
  • Cancelreply