Giter Club home page Giter Club logo

Comments (4)

Molin123 avatar Molin123 commented on May 24, 2024

@Zegapaiz app.js对应的是一个spa的入口,app目录下的文件则是spa对应的不同页面。npm run start是在Mac上面的命令,npm run start-win是Windows上的命令。

from react-molin.

sage-z avatar sage-z commented on May 24, 2024

thanks!再问下config.page.js中配置的页面是只能配置spa的入口文件是吧?还是也能配置spa中的不同页面,不同spa间可以互相跳转吗?

因为看到模板文件中的title是按照 config.page.js 中的配置渲染的,如果不能配置spa中的页面的话怎样实现动态渲染这个title?

from react-molin.

Molin123 avatar Molin123 commented on May 24, 2024

@Zegapaiz config.page.js配置的是我们最终生成的.html文件。如果想在spa不同页面设置title的话可以使用document.title = 'title';。不同的spa之间跳转使用window.location.href即可。

from react-molin.

sage-z avatar sage-z commented on May 24, 2024

该框架非常适合我的需求!同时问下是否还有数据层操作呢?

from react-molin.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.