简体   繁体   English

使用SammyJS和requireJS路由模块

[英]Using SammyJS with requireJS to route Modules

Im just wondering if anyone has setup SammyJS with requireJS to route creation of modules depending on the provided hash address? 我只是想知道是否有人使用requireJS设置SammyJS来根据提供的哈希地址路由模块的创建?

Is it possible? 可能吗? Advice? 建议吗?

Thanks 谢谢

In BoilerplateJS we have used crossroads.js to implement creation of modules depending on the provided hash address. BoilerplateJS中,我们使用crossroads.js来实现模块的创建,具体取决于提供的哈希地址。 This is the router which we use to implement that. 这是我们用来实现它的路由器

I believe sammyJS can be used in a similar manner. 我相信sammyJS可以以类似的方式使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM