1、首先我们先要上传一个webresource,获取它的name

2、我们要去Site Map上导入

- 在所需要的Area里的Group添加Subarea
- 类型的选择,Type -->URL  URL为所需webresource的地址 
3、另一种方法,在command bar嵌入
· 在你的model-driven-app里 点击右键 edit -> edit in preview
· 进到这个页面 在右侧导航栏app里点击 edit command bar(preview)
 
~ add new 一个 library
//open即为入口函数
function open() {
    var pageInput = {
        pageType: "webresource",	//pageType
        webresourceName: "new_web/todoList.html",	//name为文档开头的name值
    };
    var navigationOptions = {
        target: 2, 
        position: 2,
        width: {value: 1024, unit: "px"},
        title: "handsome boy"
    };
    Xrm.Navigation.navigateTo(pageInput, navigationOptions)
        .then(
            function () {
                // Called when the dialog closes
            }
        ).catch(
            function (error) {
                // Handle error
            }
        );
}
~ 然后我写好了 ,save and publish
 
 










