Closed. This question needs to be more focused。它当前不接受答案。
                        
                    
                
            
        
            
        
                
                    
                
            
                
                    想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                
                    3年前关闭。
            
        

    

我有一个使用Materialize的AngularJS应用程序,我有一个名为:报告的模块,然后有一个名为:reports.html的视图,我将在其中放置所有报告。问题是,我不想将报告的所有代码都放在report.html中,而是要使用多个.html文件(例如report1.html,report2.html,report3.html)对其进行模块化。如何执行此操作以在report.html中包含或使用该文件(不使用iframe)并将参数传递到该视图(reports.html)?

谢谢。

最佳答案

如果您使用的是angular.js,就不能只在/reports.html中使用angular include吗?

<div ng-include="'reports2.html'"></div>

关于javascript - 我可以使用Materialize在 View 中使用多个.html吗? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42793619/

10-12 12:26
查看更多