-
react生命周期
查看全部 -
state 组件里头的数据
props 其他组件传过来的数据
查看全部 -
"dependencies": { "pubsub-js": "^1.6.1", "react": "^16.4.2", "react-dom": "^16.4.2", "react-hot-loader": "^4.3.5", "react-router": "^4.3.1" }, "devDependencies": { "autoprefixer": "^9.1.3", "babel-core": "^6.26.3", "babel-loader": "^7.1.5", "babel-plugin-react-transform": "^3.0.0", "babel-preset-env": "^1.7.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "css-loader": "^1.0.0", "extract-text-webpack-plugin": "^3.0.2", "html-webpack-plugin": "^3.2.0", "json-loader": "^0.5.7", "less": "^3.8.1", "less-loader": "^4.1.0", "style-loader": "^0.22.1", "webpack": "^4.17.1", "webpack-cli": "^3.1.0", "webpack-dev-server": "^3.1.6" }
查看全部 -
module.export = { entry:'./app/index.js', output:{ path:'./dist', filename:'bundle.js' }, resolve: { // 第一项空字符串必不可少,否则报模块错误 extensions: ['', '.es6','.js', '.vue','.jsx'] } }
entry地址要以 ‘./’ 开头,不然路径会从node_modules开始算起
查看全部 -
"dependencies": {
"pubsub-js": "^1.5.4",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"react-hot-loader": "^3.0.0-beta.2",
"react-router": "^2.0.0"
},
"devDependencies": {
"autoprefixer":"^6.3.6",
"babel-core":"^6.5.2",
"babel-loader":"^6.2.2",
"babel-plugin-react-transform": "^2.0.0",
"babel-preset-es2015":"^6.5.0",
"babel-preset-react":"^6.5.0",
"css-loader":"^0.23.1",
"extract-text-webpack-plugin":"^1.0.1",
"html-webpack-plugin":"^2.16.1",
"json-loader":"^0.5.4",
"less":"^2.6.0",
"less-loader":"^2.2.2",
"style-loader":"^0.13.1",
"webpack":"^1.13.0",
"webpack-dev-server":"^1.14.1"
}
查看全部 -
对应的歌曲详情页有人知道怎么做吗查看全部
-
组件之间通信
查看全部 -
内容截图代码
查看全部 -
步骤样式截图
查看全部 -
取余 newIndex =(index+1) % this.state.musicList.length
查看全部 -
git代码
查看全部 -
router的两种模式
查看全部 -
设置state.progress的值时:
this.state = {
progress:"" // 此处不能写视屏中的"-" 可能会报错
}
查看全部 -
组件化思想查看全部
-
React的编程思想
数据驱动
查看全部
举报