Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
408 views
in Technique[技术] by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

评论区的 @zp1996 说的没错

变量的解构赋值,可以看下阮一峰的教程
http://es6.ruanyifeng.com/#do...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...