根据文档 来做的
// Initialize app
var myApp = new Framework7();
// If we need to use custom DOM library, let's save it to $$ variable:
var $$ = Framework7.$;
console.log(myApp.addView);
// Add view
var mainView = myApp.addView('.view-main', {
// Because we want to use dynamic navbar, we need to enable it for this view:
dynamicNavbar: true
});
然后我搜索了 framework7 源码 根本没有找到 addView这方法...
潇湘沐
相关分类