Comments (4)
@Zegapaiz app.js对应的是一个spa的入口,app目录下的文件则是spa对应的不同页面。npm run start是在Mac上面的命令,npm run start-win是Windows上的命令。
from react-molin.
thanks!再问下config.page.js中配置的页面是只能配置spa的入口文件是吧?还是也能配置spa中的不同页面,不同spa间可以互相跳转吗?
因为看到模板文件中的title是按照 config.page.js 中的配置渲染的,如果不能配置spa中的页面的话怎样实现动态渲染这个title?
from react-molin.
@Zegapaiz config.page.js
配置的是我们最终生成的.html
文件。如果想在spa不同页面设置title的话可以使用document.title = 'title';
。不同的spa之间跳转使用window.location.href
即可。
from react-molin.
该框架非常适合我的需求!同时问下是否还有数据层操作呢?
from react-molin.
Related Issues (14)
- 貌似有报错 HOT 8
- 引入antd-mobile 中的Popup组件报错 HOT 11
- npm run start 报错 HOT 1
- less编译时报错
- this.props.match.path 找不到
- 设置host,提个小建议 HOT 4
- 部署到tomcat,提示找不到访问路经 HOT 1
- 感觉JSX的语法配置还是要写在webpack配置文件里面 HOT 1
- 可以加eslint校验代码 HOT 1
- 本地项目引入antd-mobile源码
- 请教您一个关于Router按需加载的问题 HOT 6
- fetch HOT 4
- webpack HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-molin.